import type { ILocalModelFamilyV1, ILocalModelStatusV1 } from "../../../../platform/agentHost/common/localModel.js"; import type { IAgentConnection } from "../../../../platform/agentHost/common/agentService.js"; /** The {@link ILocalModelService.getPendingStops} key of a Stop sent for the server of the active model `familyId`, until its state changes. */ export declare function getLocalModelServerStopId(familyId: string): string; /** The {@link ILocalModelService.getPendingStops} key of a Stop Now sent for operation `operationId`'s drain; a Cancel or Pause is pending as the operation's own id. */ export declare function getLocalModelStopNowId(operationId: string): string; /** Outcome of the pre-send guard; `block` keeps the draft when the chat is bound to an installed on-device model that isn't active. */ export type LocalModelSendCheck = { readonly kind: "allow"; } | { readonly kind: "block"; readonly reason: "modelNotActive"; readonly familyId: string; readonly activeFamilyId: string | undefined; }; /** * User-facing confirmations the service needs before sending some requests; each resolves `false` when the user * cancels. Without a registered handler, actions that need one are not sent. Setup and loading another model need * none: consent is given on the detail page, and a load can be cancelled from the notice above the chat input. */ export interface ILocalModelInteractionHandler { /** "Stop {n} running responses?" */ confirmStopNow(connection: IAgentConnection, status: ILocalModelStatusV1): Promise; /** Removal confirmation, showing usage counts. */ confirmRemove(connection: IAgentConnection, status: ILocalModelStatusV1, family: ILocalModelFamilyV1): Promise; }