import type { AgentMode } from './client.js'; export declare const LOCAL_UPLOAD_DIR: string; export interface PermissionEventProperties { sessionID?: string; sessionId?: string; session_id?: string; id?: string; requestId?: string; requestID?: string; request_id?: string; permissionId?: string; permissionID?: string; permission_id?: string; tool?: unknown; permission?: unknown; description?: string; risk?: string; metadata?: Record; } export type PermissionCorrelation = { parentSessionId?: string; relatedSessionId?: string; messageId?: string; callId?: string; }; export type DirectoryEventStreamEntry = { controller: AbortController; active: boolean; reconnectTimer: NodeJS.Timeout | null; }; export declare function getPermissionLabel(props: PermissionEventProperties): string; export declare function getFirstString(...values: unknown[]): string; export declare function toRecord(value: unknown): Record | undefined; export declare function getFirstStringFromRecord(record: Record | undefined, keys: string[]): string; export declare function extractPermissionCorrelation(props: PermissionEventProperties): PermissionCorrelation; export declare function isPermissionRequestEventType(eventType: string): boolean; export declare function formatSdkError(error: unknown): string; export declare function parseBoolean(value: unknown): boolean | undefined; export declare function parseAgentMode(value: unknown): AgentMode | undefined; export declare function buildOpencodeAuthorizationHeaderValue(): string | undefined; export declare function withOpencodeAuthorizationHeaders(headers?: Record): Record; export declare function isUnauthorizedStatusCode(statusCode?: number): boolean; export declare function buildAuthEnvHint(): string; export declare function appendAuthHint(message: string, statusCode?: number): string; export declare function extractLocalUploadFilename(rawUrl: string): string | null; export declare function inlineLocalUploadParts(parts: Array<{ type: 'text'; text: string; } | { type: 'file'; mime: string; url: string; filename?: string; }>): Promise>; //# sourceMappingURL=client-helpers.d.ts.map