import { type PluginAuthorization } from './setup-contract.js'; import type { AgentPluginStore, InstalledAgentPlugin } from './store.js'; type CliMethod = Extract; export type PluginCliAuthorization = { id: string; state: 'preparing' | 'awaiting_user' | 'connected' | 'error' | 'cancelled'; expiresAt: number; challenge?: { type: 'url' | 'qr'; url: string; message?: string; }; error?: string; }; export declare function inspectPluginCliAuthorization(store: AgentPluginStore, plugin: InstalledAgentPlugin, authorization: string, method: CliMethod, signal: AbortSignal): Promise<{ authenticated: boolean; issues: { id: string; title: string; scopes: string[]; instructions: string[]; method?: string | undefined; helpUrl?: string | undefined; }[]; expiresAt?: number | undefined; }>; export declare function checkPluginCliAuthorization(store: AgentPluginStore, plugin: InstalledAgentPlugin, authorization: string, method: CliMethod, signal: AbortSignal): Promise; export declare function startPluginCliAuthorization(store: AgentPluginStore, plugin: InstalledAgentPlugin, authorization: string, method: CliMethod, owner: string): PluginCliAuthorization; export declare function getPluginCliAuthorization(id: string, owner: string, revision: string): PluginCliAuthorization | undefined; export declare function cancelPluginCliAuthorizations(pluginId: string, owner?: string): void; export declare function cancelAllPluginCliAuthorizations(): void; export {};