import type { PluginInput, ProviderContext } from '@opencode-ai/plugin'; import type { Model, UserMessage } from '@opencode-ai/sdk'; interface ChatHeadersInput { sessionID: string; model: Model; provider: ProviderContext; message: UserMessage; } interface ChatHeadersOutput { headers: Record; } /** Copilot routing header the hook may set (shared with the v2 bridge in * `src/v2/setup.ts` so both hosts stamp the exact same header/value). */ export declare const CHAT_INITIATOR_HEADER_NAME = "x-initiator"; export declare const CHAT_INITIATOR_HEADER_AGENT = "agent"; export declare function __resetInternalMarkerCacheForTesting(): void; /** Copilot provider ids whose backend distinguishes user- vs * agent-initiated requests via the `x-initiator` header. Exported for the * v2 `session.model.request` bridge (`src/v2/setup.ts`). */ export declare function isCopilotProvider(providerID: string): boolean; export declare function createChatHeadersHook(ctx: PluginInput): { 'chat.headers': (input: ChatHeadersInput, output: ChatHeadersOutput) => Promise; }; export {};