import { type Mountable } from './build-context.js'; import type { Renderable } from './element.js'; /** Render `content` into `target` (default `document.body`) instead of inline — * for overlays (dialog/popover/toast). The content's bindings join the current * scope (so it stays reactive); a teardown removes the nodes on unmount/dispose. * Returns an inline placeholder comment. */ export declare function portal(content: () => Renderable, target?: Element): Mountable; export interface Context { readonly id: symbol; readonly default: T; } export declare function createContext(defaultValue: T, name?: string): Context; /** Provide `value` for `context` to everything `render` builds, then restore. */ export declare function provide(context: Context, value: T, render: () => Renderable): Mountable; /** Read the nearest provided value for `context`, or its default. Outside a * signal build (e.g. a unit test calling `connect()` directly) no provider can * exist, so the default is returned rather than throwing. */ export declare function useContext(context: Context): T; //# sourceMappingURL=context.d.ts.map