import type { ModelContext, ModelContextWithResources, ToolDescriptor } from './types.js'; /** True only inside a browser-like environment (not SSR / workers / edge). */ export declare function isBrowserEnvironment(): boolean; /** * Return the standard `document.modelContext`, falling back to the deprecated * `navigator.modelContext` alias. `document` is the canonical surface as of the * May 2026 spec change; the navigator getter is retained only for back-compat. * Returns `undefined` outside a browser or before the polyfill has installed. */ export declare function getModelContext(): ModelContext | undefined; /** Same as {@link getModelContext}, typed to include the toolkit's resource extension. */ export declare function getModelContextWithResources(): ModelContextWithResources | undefined; /** * SSR-safe convenience over `document.modelContext.registerTool(...)`, the * function-form counterpart of {@link registerResource}. Outside a browser (or * before the surface exists) it is a silent no-op, so tool modules can call it * unconditionally. In a browser it delegates to the standard method — the * descriptor is plain WebMCP, nothing Napster-specific. */ export declare function registerTool(tool: ToolDescriptor, options?: { signal?: AbortSignal; }): void | Promise; //# sourceMappingURL=model-context.d.ts.map