import { type ReactNode } from 'react'; import { type IUseSheetReturn } from './useSheet'; /** * Props for the SheetProvider component. * * @public */ export interface ISheetProviderProps { /** * Child components that will have access to the sheet context. */ children: ReactNode; } /** * Provider component that makes sheet functionality available to all child components. * * @remarks * Place this provider at the root of your application or at a level where all * components that need sheet access are descendants. * * @example * ```tsx * // In your app root * function App() { * return ( * * * * ); * } * ``` * * @public * @param props - The provider props. * @returns The provider component wrapping children. */ export declare function SheetProvider({ children }: ISheetProviderProps): ReactNode; /** * Hook to access the sheet context. * * @remarks * This hook must be used within a SheetProvider. If you don't need the provider pattern, * use `useSheet` directly instead. * * @example * ```tsx * function MyComponent() { * const sheet = useSheetContext(); * * return ( * * ); * } * ``` * * @public * @returns The sheet context value. * @throws Error if used outside of a SheetProvider. */ export declare function useSheetContext(): IUseSheetReturn; //# sourceMappingURL=SheetContext.d.ts.map