import { type Input, type KyResponse, type Options, type ResponsePromise } from "ky"; import { ResultAsync } from "neverthrow"; export declare class SafeKyFetchError extends Error { constructor(...args: ConstructorParameters); } export declare class SafeKyParseError extends Error { constructor(...args: ConstructorParameters); } export declare function safeKy(input: Input, options?: Options): SafeKyResultAsync; type SafeKyResponseResult = Omit, "json" | "text" | "arrayBuffer" | "blob"> & { json: () => ResultAsync; text: () => ResultAsync; arrayBuffer: () => ResultAsync; blob: () => ResultAsync; }; declare class SafeKyResultAsync extends ResultAsync, SafeKyFetchError | SafeKyParseError> { static fromRequest(promise: ResponsePromise): SafeKyResultAsync; json(): ResultAsync; text(): ResultAsync; arrayBuffer(): ResultAsync; blob(): ResultAsync; } export {}; //# sourceMappingURL=safe-ky.d.ts.map