import { Format, type Accepted } from '@fougere/schema'; import { type ProtocolConfig } from '@fougere/core'; declare const ROUTE: Format<{ method?: "DELETE" | "GET" | "PATCH" | "POST" | "PUT" | undefined; path?: string | undefined; responses?: { headers?: string[] | undefined; status?: number | undefined; }[] | undefined; status?: number | undefined; }>; /** * Where the app mounts REST, and the routes of a frond it cannot edit — `betterAuth()`, a package's. * A frond of this project says its own in its `frond.config.ts`. */ declare const REST: Format<{ openapi?: { ui?: "scalar" | "swagger" | boolean | undefined; } | undefined; overrides?: Record | undefined; prefix?: string | undefined; }>; /** What a frond says of itself: the segment it answers under, `/journal` rather than `/blog`. */ declare const FROND: Format<{ path?: string | undefined; }>; export type RestRoute = Accepted; declare module '@fougere/core' { interface FougereProtocols { rest: Accepted; } interface FougereOperationProtocols { rest?: RestRoute; } interface FougereFrondProtocols { rest?: Accepted; } } /** Where REST is mounted when `protocols.rest.prefix` says nothing. */ export declare const PREFIX = "/api"; export declare function prefixOf(protocols: ProtocolConfig | undefined): string; export {}; //# sourceMappingURL=RestProtocol.d.ts.map