import { User } from '../../user/types'; import { NewWebAuthnDevice, WebAuthnDevice } from './types'; declare type UserWebAuthnRow = { id: number; user_id: number; credential_id: string; public_key: string; counter: number; }; export declare function save(webAuthNDevice: NewWebAuthnDevice): Promise; export declare function findDevicesByUser(user: User): Promise; export declare function findDeviceByUserAndId(user: User, credentialId: string): Promise; export declare function hasWebauthn(user: User): Promise; export declare function recordToModel(userWebAuthn: UserWebAuthnRow, user: User): WebAuthnDevice; export {};