export interface SafeContextOptions { /** Whether to throw an error if the context is not provided. */ throwOnError?: boolean; /** The value to return if the context is not provided. */ defaultValue?: T; } /** * Create a safe context that throws an error if the context is not provided. * * @param errorMessage - The error message to throw if the context is not provided. * @returns The context provider and a hook to read the context. */ export declare const createSafeContext: (errorMessage: string) => readonly [import('react').Provider, (options?: SafeContextOptions) => T];