import type { Session, Message } from '../../types/api'; type ApiSession = Record & { title?: string | null; createdAt?: string | number; lastActiveAt?: string | number; lastViewedAt?: string | number | null; pinnedAt?: string | number | null; }; export declare function shouldRenewOwnerRequest(input: { status?: number; retried?: boolean; shareMode: boolean; hasOwnerSession: boolean; runtimeBase?: string; requestUrl?: string; }): boolean; type ApiMessage = Record & { createdAt?: string | number; completedAt?: string | number | null; }; export declare function extractErrorMessage(error: unknown): string; export declare function configureApiClient(): void; export declare function getBaseUrl(): string; export declare function getProjectId(): string | undefined; export declare function getProjectRoot(): string | undefined; export declare function getAuthHeaders(): Record; /** Fetches with current runtime auth and renews a remote owner session once. */ export declare function authenticatedFetch(input: string | URL | Request, init?: RequestInit): Promise; export declare function getProjectQuery(): { project?: string; projectId?: string; }; export declare function getProjectKey(): string; export declare function projectScopedKey(key: T): readonly ["project", string, ...T]; export declare function setRuntimeApiBaseUrl(value: string): string; export declare function convertSession(apiSession: ApiSession): Session; export declare function convertMessage(apiMessage: ApiMessage): Message; export {}; //# sourceMappingURL=utils.d.ts.map