15 lines
571 B
TypeScript
15 lines
571 B
TypeScript
import { type SearchParams } from '../request/search-params';
|
|
import type { Params } from '../request/params';
|
|
export interface UseCachePageComponentProps {
|
|
params: Promise<Params>;
|
|
searchParams: Promise<SearchParams>;
|
|
$$isPageComponent: true;
|
|
}
|
|
export type UseCacheLayoutComponentProps = {
|
|
params: Promise<Params>;
|
|
$$isLayoutComponent: true;
|
|
} & {
|
|
[slot: string]: any;
|
|
};
|
|
export declare function cache(kind: string, id: string, boundArgsLength: number, originalFn: (...args: unknown[]) => Promise<unknown>): (...args: any[]) => Promise<unknown>;
|