@passflow/passflow-react-sdk
Version:
Passflow React UI Kit
15 lines • 597 B
TypeScript
export type NavigateOptions = {
to: string;
search?: string;
replace?: boolean;
};
export type RouterType = 'default' | 'react-router' | 'tanstack-router' | 'wouter';
export type NavigateFunction = (options: NavigateOptions) => void;
export type NavigationContextType = {
navigate: NavigateFunction;
setNavigate: (navigate: NavigateFunction | null) => void;
router: RouterType;
};
export declare const defaultNavigate: NavigateFunction;
export declare const NavigationContext: import('react').Context<NavigationContextType>;
//# sourceMappingURL=navigation-context.d.ts.map