import { WebAuthnRegistrationOptions, WebAuthnAuthenticationOptions, RegistrationCredential, AuthenticationCredential } from '../../passkey/index';
export type { WebAuthnRegistrationOptions, WebAuthnAuthenticationOptions, RegistrationCredential, AuthenticationCredential, };
export interface UsePasskeyResult {
    /** Whether the current browser supports the WebAuthn/Passkey API. */
    isSupported: boolean;
    /**
     * Register a new passkey.  Delegates to `registerPasskey()`.
     * Throws when WebAuthn is unsupported or the credential could not be created.
     */
    register: (options: WebAuthnRegistrationOptions) => Promise<RegistrationCredential>;
    /**
     * Authenticate with an existing passkey.  Delegates to `authenticateWithPasskey()`.
     * Throws when WebAuthn is unsupported or the credential could not be retrieved.
     */
    authenticate: (options: WebAuthnAuthenticationOptions) => Promise<AuthenticationCredential>;
}
export declare function usePasskey(): UsePasskeyResult;
//# sourceMappingURL=usePasskey.d.ts.map