export declare const DEFAULT_BASE_URL: 'https://api.gogosling.ca/v1'; export type Family = 'qa' | 'career' | 'diagnostics' | 'catalogue' | 'client'; export type JsonObject = Record; export type Query = Record; export type Collection = 'profile' | 'experience' | 'projects' | 'education' | 'awards' | 'publications' | 'skills'; export interface Options { signal?: AbortSignal; } export interface PageOptions extends Options { maxPages?: number; } export interface ApiResult { data: T; family: Family; status: number; requestId: string | null; retryAfterMs: number | null; } export declare class GoslingApiError extends Error { code: string; family: Family; status: number; requestId: string | null; retryAfterMs: number | null; constructor(code: string, meta?: Partial>); } export interface Client { readonly baseUrl: string; catalogue(options?: Options): Promise; qa: { setToken(token: string | null): void; login(input: { login: string; password: string; device_id?: string }, options?: Options): Promise; logout(options?: Options): Promise; account(options?: Options): Promise; revokeSession(sessionId: string, options?: Options): Promise; context(params?: Query, options?: Options): Promise; contextPages(params?: Query, options?: PageOptions): AsyncGenerator; }; career: { record(params?: Query, options?: Options): Promise; entry(collection: Collection, id: string, options?: Options): Promise; create(collection: Collection, entry: JsonObject, options?: Options): Promise; replace(collection: Collection, id: string, entry: JsonObject, options: Options & { ifMatch: number }): Promise; history(params?: Query, options?: Options): Promise; historyPages(params?: Query, options?: PageOptions): AsyncGenerator; }; diagnostics: { events(params?: Query, options?: Options): Promise; eventPages(params?: Query, options?: PageOptions): AsyncGenerator; }; } export declare function createGoslingClient(options?: { baseUrl?: string; credentials?: { qa?: string; career?: string; diagnostics?: string }; timeoutMs?: number; maxResponseBytes?: number; /** Local synthetic tests only. Remote HTTP is always refused. */ allowHttpLoopback?: boolean; fetchImpl?: typeof fetch; }): Client;