import * as S from '@principia/schema'; import * as D from '@principia/schema/Decoder'; export interface ParsedContentType { readonly type: string; readonly parameters: Record; } export declare const HttpContentType: { readonly APPLICATION: "application/*"; readonly APPLICATION_RTF: "application/rtf"; readonly APPLICATION_ZIP: "application/zip"; readonly APPLICATION_X_RAR: "application/x-rar-compressed"; readonly APPLICATION_X_TAR: "application/x-tar"; readonly APPLICATION_X_TZ_COMPRESSED: "application/x-7z-compressed"; readonly APPLICATION_X_WWW_FORM_URLENCODED: "application/x-www-form-urlencoded"; readonly APPLICATION_PDF: "application/pdf"; readonly APPLICATION_JSON: "application/json"; readonly APPLICATION_JAVASCRIPT: "application/javascript"; readonly APPLICATION_ECMASCRIPT: "application/ecmascript"; readonly APPLICATION_XML: "application/xml"; readonly APPLICATION_OCTET_STREAM: "application/octet-stream"; readonly APPLICATION_VND_API_JSON: "application/vnd.api+json"; readonly APPLICATION_GRAPHQL: "application/graphql"; readonly TEXT_PLAIN: "text/plain"; readonly TEXT_HTML: "text/html"; readonly TEXT_CSS: "text/css"; readonly TEXT_CSV: "text/csv"; readonly IMAGE_WEBP: "image/webp"; readonly IMAGE_JPEG: "image/jpeg"; readonly IMAGE_PNG: "image/png"; readonly IMAGE_GIF: "image/gif"; readonly IMAGE_TIFF: "image/tiff"; readonly IMAGE_SVG_XML: "image/svg+xml"; readonly AUDIO_MPEG: "audio/mpeg"; readonly AUDIO_OGG: "audio/ogg"; readonly AUDIO: "audio/*"; readonly VIDEO_WEBM: "video/webm"; readonly VIDEO_MP4: "video/mp4"; readonly FONT_TTF: "font/ttf"; readonly FONT_WOFF: "font/woff"; readonly FONT_WOFF2: "font/woff2"; readonly MULTIPART_FORM_DATA: "multipart/form-data"; }; export declare type HttpContentType = typeof HttpContentType[keyof typeof HttpContentType]; export declare const ContentTypeModel: S.LiteralS<["application/*", "application/rtf", "application/zip", "application/x-rar-compressed", "application/x-tar", "application/x-7z-compressed", "application/x-www-form-urlencoded", "application/pdf", "application/json", "application/javascript", "application/ecmascript", "application/xml", "application/octet-stream", "application/vnd.api+json", "application/graphql", "text/plain", "text/html", "text/css", "text/csv", "image/webp", "image/jpeg", "image/png", "image/gif", "image/tiff", "image/svg+xml", "audio/mpeg", "audio/ogg", "audio/*", "video/webm", "video/mp4", "font/ttf", "font/woff", "font/woff2", "multipart/form-data"]>; export declare const CharsetModel: S.LiteralS<["utf-8", "utf8", "ascii", "utf16le", "ucs2", "ucs-2", "binary", "hex", "base64", "latin1"]>; export declare const decodeCharset: D.Decoder, "utf-8" | "utf8" | "ascii" | "utf16le" | "ucs2" | "ucs-2" | "binary" | "hex" | "base64" | "latin1">; export interface CookieOptions { readonly expires?: Date; readonly domain?: string; readonly httpOnly?: boolean; readonly maxAge?: number; readonly path?: string; readonly sameSite?: boolean | 'strict' | 'lax'; readonly secure?: boolean; readonly signed?: boolean; } export declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'TRACE'; export declare function parseContentType(s: string): ParsedContentType; //# sourceMappingURL=utils.d.ts.map