/** * Per-request behavior overrides set by the caller. Currently: * * defaultCountry — ISO 3166-1 alpha-2 (lowercase) used as a fallback * when a tool argument omits `country`. Applies only * to tools that use the 12-country lowercase set * (NOT validate_vat, which uses a different list). * * verboseErrors — When true, tool errors include an additional * structured JSON block with `status`, `code`, * upstream `source`, and parsed error `details` — * useful when integrating from CI or building * debugger UIs around an agent. * * Sources, in order of precedence per request: * 1. AsyncLocalStorage scope set by the HTTP entrypoint after parsing * request headers / query params (Smithery's gateway forwards user * config this way). * 2. Process env vars NORDIC_DEFAULT_COUNTRY / NORDIC_VERBOSE_ERRORS * for stdio mode (Claude Desktop, Cursor, etc.) where there are no * per-request headers. */ export interface RequestOptions { defaultCountry?: string; verboseErrors?: boolean; } export declare function runWithRequestOptions(opts: RequestOptions, fn: () => Promise): Promise; export declare function getRequestOptions(): RequestOptions; /** * Parse a string value (from a header or query param) into a boolean * using the same truthy convention as the env var. */ export declare function parseVerboseFlag(raw: unknown): boolean | undefined; //# sourceMappingURL=requestContext.d.ts.map