import React from "react";
export type PageProps = Readonly<{
children?: React.ReactNode;
/**
* The name of the page. It can be a dynamic string, null, or undefined.
*
* If name is null or undefined, this page becomes the default handler for its parent layout.
* It will be rendered whenever the parent layout matches and no specific page name matches.
*
* @example
*
* // Can be navigated to by "/home"
* Home
*
*
*
*
* // Can be navigated to by "/user/profile"
* User Profile
*
*
*
* // Default handler for "/user" - renders when no specific page matches
* User Default Page
*
*
*
*
*
*
* // Can be navigated to by "/user/123/profile"
* User Profile
*
*
*
* ```
*/
name?: string | null;
}>;
type PageInjectContextType = {
name: string | null | undefined;
};
export declare const PageInjectContext: React.Context;
export declare function usePageInject(): PageInjectContextType | null;
export declare function Page({ children, name: nameProp }: PageProps): string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | React.JSX.Element | null | undefined;
export {};