/** * Shakespeare AI Provider Integration * * Registers Shakespeare AI as an OpenCode provider with NIP-98 authentication * using our NIP-46 remote signer (no nsec required). */ /** Shakespeare AI API base URL */ export declare const SHAKESPEARE_BASE_URL = "https://ai.shakespeare.diy/v1"; /** * Config hook - registers Shakespeare AI provider with available models */ export declare function configureShakespeareProvider(input: any): Promise; /** * Auth hook - provides NIP-98 authenticated fetch using NIP-46 remote signer * * The methods array provides a "Nostr (NIP-46)" auth option that checks * if the user is already connected via shakespeare_connect. */ export declare const shakespeareAuth: { provider: string; /** * Loader that returns a NIP-98 authenticated fetch function and sets up models * Uses our NIP-46 signer instead of requiring an nsec */ loader(_getAuth: () => Promise, provider: any): Promise<{ apiKey: string; fetch: typeof fetch; }>; /** * Auth methods - provides NIP-46 authentication via OAuth-style flow * * Uses 'oauth' type with 'auto' method. The authorize() returns immediately * with instructions (no URL redirect needed). The callback() then checks * if connected via shakespeare_connect and returns success. */ methods: { type: "oauth"; label: string; authorize(): Promise<{ url: string; instructions: string; method: "auto"; callback(): Promise<{ type: "success"; key: string; } | { type: "failed"; key?: undefined; }>; }>; }[]; }; //# sourceMappingURL=provider.d.ts.map