export type SignatureRect = { x: number; y: number; w: number; h: number; page: number; }; type OpenSigningWithLoginParams = { username: string; password: string; environmentId?: string; companyId?: string; agencyId?: string; pdfUrl?: string; signatureRect?: SignatureRect; authLogin?: never; headersOverride?: HeadersOverride; docId?: string; docIds?: string[]; } | { authLogin: AuthLoginPayload; pdfUrl?: string; signatureRect?: SignatureRect; headersOverride?: HeadersOverride; username?: never; password?: never; environmentId?: never; docId?: string; docIds?: string[]; }; export type QuantidiaJavaOptions = { force?: boolean; certificates?: string; sign?: string; }; export type InitOptions = { baseUrl: string; apiBase?: string; quantidiaJava?: QuantidiaJavaOptions; view?: "full" | "restricted" | "gateway"; }; type CredentialItem = { field: string; type?: string; format?: string; value: string; }; type AuthLoginDetail = { username: string; password: string; access_token?: never; } | { access_token: string; username?: never; password?: never; } | { method?: string; credentials?: CredentialItem[]; context?: any; options?: any; username?: string; password?: string; access_token?: string; }; type AuthLoginPayload = { authReference: { environmentId: string; userId?: string; subscriptionId?: string; companyId?: string; agencyId?: string; }; authModal?: { type?: string; mode?: string; }; authLogin: AuthLoginDetail; authCallback?: { url?: string; userId?: string; password?: string; auth?: string; retries?: string; }; authNotify?: { email?: string; sms?: string; push?: string; }; }; type HeadersOverride = { apiKey?: string; acceptLanguage?: string; }; export type SignedDocMeta = { id: string; name: string; mime: string; size: number; createdAt: number; sourceDocId?: string; }; export declare function listSignedDocuments(): SignedDocMeta[]; export declare function getSignedDocumentBytes(id: string): Uint8Array | null; export declare function removeSignedDocument(id: string): void; export declare function clearSignedDocuments(): void; export declare function addDocument(file: File): Promise<`${string}-${string}-${string}-${string}-${string}`>; export declare function addDocuments(files: FileList | File[]): Promise; export declare function removeDocument(docId: string): void; export declare function clearDocuments(): void; export declare function init(opts: InitOptions): void; declare function close(): void; export declare function openSigningWithLogin(params: OpenSigningWithLoginParams): Promise; export declare function openSigning(params: { pdfUrl?: string; signatureRect?: SignatureRect; }): Promise; export { close };