export declare function fetchAllPages(fetchPage: (cursor?: string) => Promise, getItems: (page: TPage) => TItem[]): Promise; export declare function expandHome(filepath: string): string; export declare function resolvePath(filepath: string, basePath?: string): string; export declare function getMcpcHome(): string; export declare function getSessionsFilePath(): string; export declare function getBridgesDir(): string; export declare function getShortSocketDir(): string; export declare function getSocketPath(sessionName: string, pid: number): string; export declare function getLogsDir(): string; export declare function getAuthProfilesFilePath(): string; export declare function getWalletsFilePath(): string; export declare function ensureDir(dirPath: string, mode?: number): Promise; export declare function ensureSecureTempDir(dirPath: string): Promise; export declare function fileExists(filepath: string): Promise; export declare function isValidHttpUrl(str: string): boolean; export declare function normalizeServerUrl(str: string): string; export declare function getServerHost(urlString: string): string; export declare function isValidSessionName(name: string): boolean; export declare function generateSessionName(parsed: { type: 'url'; url: string; } | { type: 'config'; file: string; entry: string; }): string; export declare function isValidProfileName(name: string): boolean; export declare function validateProfileName(profileName: string): void; export declare function isValidResourceUri(uri: string): boolean; export declare function sleep(millis: number): Promise; export declare function atomicRename(src: string, dest: string): Promise; export declare function waitForFile(filepath: string, options?: { timeoutMillis?: number; intervalMillis?: number; }): Promise; export declare function parseJson(json: string): T; export declare function stringifyJson(obj: unknown, pretty?: boolean): string; export declare function truncate(str: string, maxLength: number, suffix?: string): string; export declare function isProcessAlive(pid: number): boolean; export declare function invalidateProcessAliveCache(): void; export declare function generateRequestId(): string; export declare const REDACTED_HEADER_VALUE = ""; export declare function redactHeaders(headers: Record): Record; export declare function isSessionExpiredError(errorMessage: string, options?: { hadActiveSession?: boolean; }): boolean; export declare function isHttpRedirectError(errorMessage: string): boolean; export declare function enrichErrorMessage(errorMessage: string, serverUrl?: string): string; //# sourceMappingURL=utils.d.ts.map