import { PawFunction } from './runtime'; import type { PawConfig, LoadOptions, ProgressCallback, ProgramMeta, PawCallable } from './types'; export type { PawConfig, LoadOptions, ProgressCallback, ProgramMeta, PawFunction, PawCallable }; export declare function configure(config: PawConfig): void; /** * Load a PAW program for browser-side inference. * * Accepts a program ID (hash) or a slug (e.g., "email-triage-browser"). * Downloads the base GPT-2 model (~134 MB, cached after first load) and the * program's browser assets (~12 MB total: ~5 MB adapter + ~7 MB prefix cache). * Returns a callable PawCallable. * * @example * ```ts * import paw from '@programasweights/web'; * * const fn = await paw.function('email-triage-browser'); * const result = await fn('Urgent: server is down!'); * console.log(result); // "immediate" * * // Limit output length * const short = await fn('Urgent: server is down!', 10); * ``` */ declare function loadFunction(slugOrId: string, opts?: LoadOptions): Promise; declare const paw: { configure: typeof configure; function: typeof loadFunction; }; export default paw; //# sourceMappingURL=index.d.ts.map