summarizely-cli
Version:
YouTube summarizer that respects your existing subscriptions. No API keys required.
23 lines • 1.15 kB
TypeScript
import { Captions, Provider } from './types';
export type ProviderChoice = {
provider: Provider | null;
reason: string;
};
export declare function selectProvider(env?: NodeJS.ProcessEnv): ProviderChoice;
export declare class ProviderError extends Error {
code: 'unavailable' | 'timeout' | 'auth' | 'rate_limit' | 'invalid_request' | 'not_found' | 'no_models' | 'unknown';
constructor(code: ProviderError['code'], message: string);
}
export declare function summarizeWithProvider(provider: Provider, _cap: Captions, prompt: string, opts?: {
model?: string;
}): Promise<string | null>;
export declare function extractMarkdownFromCodexOutput(output: string | null): string | null;
declare function _httpRequestImpl(urlStr: string, options: {
method?: string;
headers?: Record<string, string>;
}, body?: string, timeoutMs?: number): Promise<string>;
export declare let httpRequest: typeof _httpRequestImpl;
export declare function __setHttpRequest(fn: typeof _httpRequestImpl): void;
export declare function formatProviderError(provider: string, e: ProviderError): string;
export {};
//# sourceMappingURL=providers.d.ts.map