import type { AppConfig, PlainData } from './types'; export type { AppConfig, PlainData } from './types'; export declare function getBaseUrl(config: AppConfig): string; export declare function initialize(projectId: string, accessToken: string, options?: { baseUrl?: string; databaseId?: string; }): AppConfig; type UpdateDocumentResponse = { name: string; fields: { meta: { mapValue: { fields: PlainData; }; }; }; createTime: string; updateTime: string; }; type SignInResponse = { kind: 'identitytoolkit#VerifyCustomTokenResponse'; idToken: string; refreshToken: string; expiresIn: string; isNewUser: boolean; }; type RefreshTokenResponse = { idToken: string; refreshToken: string; }; /** * Signs in with a custom token. * @param apiKey The public API key. * @param customToken The custom token. * @returns The sign-in response. */ export declare function signInWithCustomToken(apiKey: string, customToken: string): Promise; /** * Refreshes an id token using an existing refresh token. * @param apiKey The public API key. * @param refreshToken The refresh token. * @returns The refresh token response. */ export declare function refreshIdToken(apiKey: string, refreshToken: string): Promise; /** * Updates a Firestore document with the specified fields using a merge-like update. * @param documentPath The path to the document. * @param fields The fields to update. */ export declare function updateDocumentWithMerge(config: AppConfig, documentPath: string[], fields: PlainData): Promise; /** * Sets a Firestore document with the specified fields. * @param documentPath The path to the document. * @param fields The fields to set. */ export declare function setDocument(config: AppConfig, documentPath: string[], fields: PlainData): Promise; /** * Gets a Firestore document. * @param documentPath The path to the document. * @returns The document. */ export declare function getDocument(config: AppConfig, documentPath: string[]): Promise;