Files
med-notes/.pnpm-store/v10/files/a6/e10af66220ce9fd570c98b448c1cf2ccf679dc95724345d4b592253b425f68e1c74c28b96357395803cafd4184f2e53a3250989f20e5ced8dfd4a985a5bd2c
2025-05-09 05:30:08 +02:00

6 lines
632 B
Plaintext

import { NoInfer, PickOptional } from './utils.js';
import { SearchMiddleware } from './route.js';
import { IsRequiredParams } from './link.js';
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>;