next-typesafe-path
Version:
Type-safe path for Next.js
17 lines (16 loc) • 612 B
TypeScript
import { z } from 'zod';
export declare class GlobalSearchParamsManager {
private static instance;
private schema;
private initialized;
private constructor();
static getInstance(): GlobalSearchParamsManager;
setSchema(schema: z.ZodObject<z.ZodRawShape>): void;
getSchema(): z.ZodObject<z.ZodRawShape> | undefined;
}
export declare const setGlobalSearchParams: (schema: z.ZodObject<z.ZodRawShape>) => void;
export declare const getGlobalSearchParams: () => z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
[x: string]: any;
}, {
[x: string]: any;
}> | undefined;