import type { WaAuthCredentials } from '../types';
import type { HttpRegistrationFlow, RegisteredMobilePrimary, RegisterOptions, RegisterResult, RequestCodeOptions, RequestCodeResult, WaHttpRegistrationFlowDeps } from './types';
export declare class WaHttpRegistrationFlow implements HttpRegistrationFlow {
    private readonly logger;
    private readonly authStore;
    private readonly signalStore;
    private readonly preKeyStore;
    private readonly fetchImpl;
    private readonly baseUrl;
    private readonly encPublicKey?;
    private credentials?;
    private deviceInfo?;
    constructor(deps: WaHttpRegistrationFlowDeps);
    loadOrCreateKeys(): Promise<WaAuthCredentials>;
    private ensureCredentials;
    private buildDeviceInfo;
    /**
     * Parameters shared by every endpoint of the HTTP registration flow: the
     * country/number pair, the key material that proves device ownership and
     * the per-request identity triple (`expid` / `id` / `fdid`).
     *
     * `expid` and `id` are fresh for every request; `fdid` is the stable
     * per-device UUID that ties the requests of one registration attempt
     * together.
     */
    private buildIdentityParams;
    /**
     * Full parameter set for the code-request and register endpoints.
     */
    private buildRegistrationParams;
    private buildHeaders;
    checkExist(options: RequestCodeOptions): Promise<unknown>;
    requestCode(options: RequestCodeOptions): Promise<RequestCodeResult>;
    register(options: RegisterOptions): Promise<RegisterResult>;
    registerPhone(options: RequestCodeOptions & {
        code: string;
    }): Promise<RegisteredMobilePrimary>;
}
export declare function createHttpRegistrationFlow(deps: WaHttpRegistrationFlowDeps): HttpRegistrationFlow;
