import { PageContextInput } from '../config/types';

export type PageContextProvider = (input: PageContextInput) => Record<string, unknown> | undefined;
/**
 * Register per-page context metadata for the built-in `pageContext` attachment.
 *
 * Use this inside route/page components to attach route-specific context (record id, filters, etc.).
 * Data returned here is merged (shallow) into `attachment.metadata.data` alongside `config.pageContext.getData`.
 *
 * Example:
 *
 * ```ts
 * usePageContext(() => ({ recordId }), [recordId])
 * ```
 */
export declare const usePageContext: (provider: PageContextProvider, deps?: unknown[]) => void;
//# sourceMappingURL=usePageContext.d.ts.map