import { Effect } from 'effect'; import { K as DocUrlOptions, bb as UrlBuilderOptions, bj as DeliveryTransform } from './types-R6f5p55r.js'; import 'zod'; interface PgPage { png: (opts?: { placeholder?: string; transform?: DeliveryTransform; /** * CF Images variant name (`public`, `thumb`, `hero`, `og`, custom). Only * honored when the builder has `pdfSha + renderer + accountHash` set. * Default: `public`. */ variant?: string; }) => string; md: (opts?: { transform?: DeliveryTransform; }) => string; json: (opts?: { transform?: DeliveryTransform; }) => string; } interface PgPageRange { md: (opts?: { transform?: DeliveryTransform; }) => string; json: (opts?: { transform?: DeliveryTransform; }) => string; } interface PgProxy { [index: number]: PgPage; range: (start: number, end: number) => PgPageRange; list: (...pages: number[]) => PgPageRange; } interface DocumentUrl { /** Base document URL */ url: (opts?: UrlBuilderOptions) => string; /** Thumbnail image URL (pg_1.png). With CF Images, defaults to `variant: 'thumb'`. */ thumbnail: { url: (opts?: { transform?: DeliveryTransform; variant?: string; }) => string; }; /** Full document markdown */ full: { md: () => string; }; /** Original PDF download (auth required) */ download: () => string; /** Page access: d.pg[1].png(), d.pg[1].md(), d.pg[1].json() */ pg: PgProxy; /** Entity-level access */ entities: EntitiesProxy; /** Output schema — returns a new DocumentUrl scoped to o_{schema} */ output: (schema: string) => DocumentUrl; } interface EntitiesProxy { tables: EntityCollectionProxy; figures: EntityCollectionProxy; } interface EntityCollectionProxy { [index: number]: { url: (opts?: { format?: 'json' | 'csv' | 'html'; }) => string; }; url: (opts?: UrlBuilderOptions) => string; } declare function docEffect(documentId: string, baseUrlOrOptions?: string | DocUrlOptions, maybeOptions?: DocUrlOptions): Effect.Effect; declare function doc(documentId: string, baseUrlOrOptions?: string | DocUrlOptions, maybeOptions?: DocUrlOptions): DocumentUrl; export { doc, docEffect };