Files
med-notes/.pnpm-store/v10/files/47/4605cfc15a4191e39c8d4eee94bb3e9744c5fc4e9e8876b0b0fd468ecea078413b035c997303dfa71e8a3bddaf41c71baaa355776e967dee47b3f29b2b6b9e
2025-05-09 05:30:08 +02:00

6 lines
635 B
Plaintext

import { NoInfer, PickOptional } from './utils.cjs';
import { SearchMiddleware } from './route.cjs';
import { IsRequiredParams } from './link.cjs';
export declare function retainSearchParams<TSearchSchema extends object>(keys: Array<keyof TSearchSchema> | true): SearchMiddleware<TSearchSchema>;
export declare function stripSearchParams<TSearchSchema, TOptionalProps = PickOptional<NoInfer<TSearchSchema>>, const TValues = Partial<NoInfer<TOptionalProps>> | Array<keyof TOptionalProps>, const TInput = IsRequiredParams<TSearchSchema> extends never ? TValues | true : TValues>(input: NoInfer<TInput>): SearchMiddleware<TSearchSchema>;