import type { GetAuthStatusResponse, GetStatusResponse, MessageOptions, ModelInfo, CurrentToolMetadata, ResumeSessionConfig, SessionConfig, SessionEvent } from "@github/copilot-sdk"; export interface PendingToolResult { readonly textResultForLlm: string; readonly resultType?: string; readonly error?: string; readonly sessionLog?: string; readonly binaryResultsForLlm?: readonly { readonly type: "image" | "resource"; readonly data: string; readonly mimeType: string; readonly description?: string; }[]; readonly contents?: readonly Record[]; } export interface CopilotSessionPort { readonly sessionId: string; on(handler: (event: SessionEvent) => void): () => void; send(options: MessageOptions | string): Promise; abort(): Promise; disconnect(): Promise; readonly rpc: { readonly tools: { handlePendingToolCall(input: { requestId: string; result?: string | PendingToolResult; error?: string; }): Promise<{ success: boolean; }>; getCurrentMetadata(): Promise<{ tools: readonly CurrentToolMetadata[] | null; }>; }; }; } export interface CopilotClientPort { createSession(config: CopilotSessionConfig): Promise; resumeSession(sessionId: string, config: CopilotResumeSessionConfig): Promise; listModels(): Promise; getAuthStatus(): Promise; getStatus(): Promise; stop(): Promise; forceStop(): Promise; } /** Provider-owned session values accepted by the generated string RPC. */ export type CopilotSessionConfig = Omit & { readonly reasoningEffort?: string; }; /** Provider-owned resume values accepted by the generated string RPC. */ export type CopilotResumeSessionConfig = Omit & { readonly reasoningEffort?: string; }; export type CopilotModel = Omit & { /** * The generated RPC contract owns provider-issued strings here. The pinned * SDK's public ReasoningEffort alias can lag the runtime catalog (for * example, it currently omits the official `none` value). */ readonly supportedReasoningEfforts?: readonly string[]; readonly defaultReasoningEffort?: string; /** Adapter-local DSH metadata for an explicit static fallback entry. */ readonly description?: string; /** Adapter-local decoded-pixel limit for immutable DSH image reads. */ readonly imagePixelBudget?: number; }; export type CopilotEvent = SessionEvent; //# sourceMappingURL=sdk-port.d.ts.map