UNPKG

blade

Version:
26 lines (25 loc) 1.27 kB
import { f as GetQuery, p as ListQuery, s as CountQuery } from "../../index-l2pJm30F.js"; import { t as PageMetadata } from "../../context-CIJX_XuL.js"; import "../../index-D9P9itFa-C0Jtggx-.js"; //#region public/server/hooks.d.ts interface IncomingPageMetadata extends Omit<PageMetadata, 'title'> { title?: string; } /** * Allows for populating the `<head>` element of the page with `<meta>` tags that help * the browser and crawlers obtain meta information about the currently active page, such * as the page title or Open Graph images. * * @param metadata - A `IncomingPageMetadata` object containing the meta information that * should be rendered in the `<head>` element. */ declare const useMetadata: (metadata: IncomingPageMetadata) => void; /** Allows for retrieving records. */ declare const use: DeepCallable<GetQuery>; /** Allows for counting records. */ declare const useCountOf: DeepCallable<CountQuery, number>; /** Allows for retrieving models. */ declare const useListOf: DeepCallable<ListQuery>; declare const useBatch: <T extends [any, ...Array<any>] | Array<any>>(operations: () => T, queryOptions?: Record<string, unknown>) => PromiseTuple<T>; //#endregion export { IncomingPageMetadata, use, useBatch, useCountOf, useListOf, useMetadata };