/**
 * Cloudflare DURABLE-OBJECTS API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service durable-objects
 */
import * as Schema from "effect/Schema";
import type * as HttpClient from "effect/unstable/http/HttpClient";
import * as API from "../client/api.ts";
import type { Credentials } from "../credentials.ts";
import { type DefaultErrors } from "../errors.ts";
declare const InvalidIdentifier_base: Schema.Class<InvalidIdentifier, Schema.TaggedStruct<"InvalidIdentifier", {
    readonly code: Schema.Number;
    readonly message: Schema.String;
}>, import("effect/Cause").YieldableError>;
export declare class InvalidIdentifier extends InvalidIdentifier_base {
}
declare const MalformedParameter_base: Schema.Class<MalformedParameter, Schema.TaggedStruct<"MalformedParameter", {
    readonly code: Schema.Number;
    readonly message: Schema.String;
}>, import("effect/Cause").YieldableError>;
export declare class MalformedParameter extends MalformedParameter_base {
}
declare const NamespaceNotFound_base: Schema.Class<NamespaceNotFound, Schema.TaggedStruct<"NamespaceNotFound", {
    readonly code: Schema.Number;
    readonly message: Schema.String;
}>, import("effect/Cause").YieldableError>;
export declare class NamespaceNotFound extends NamespaceNotFound_base {
}
export interface ListNamespacesRequest {
    /** Path param: Identifier. */
    accountId: string;
    page?: number;
    perPage?: number;
}
export declare const ListNamespacesRequest: Schema.Schema<ListNamespacesRequest>;
export interface ListNamespacesResponse {
    result: {
        id?: string | null;
        class?: string | null;
        name?: string | null;
        script?: string | null;
        useSqlite?: boolean | null;
    }[];
    resultInfo?: {
        count?: number | null;
        page?: number | null;
        perPage?: number | null;
        totalCount?: number | null;
    } | null;
}
export declare const ListNamespacesResponse: Schema.Schema<ListNamespacesResponse>;
export type ListNamespacesError = DefaultErrors | InvalidIdentifier;
export declare const listNamespaces: API.PaginatedOperationMethod<ListNamespacesRequest, ListNamespacesResponse, ListNamespacesError, Credentials | HttpClient.HttpClient>;
export interface ListNamespaceObjectsRequest {
    id: string;
    /** Path param: Identifier. */
    accountId: string;
    cursor?: string;
    /** Query param: The number of objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit. */
    limit?: number;
}
export declare const ListNamespaceObjectsRequest: Schema.Schema<ListNamespaceObjectsRequest>;
export interface ListNamespaceObjectsResponse {
    result: {
        id?: string | null;
        hasStoredData?: boolean | null;
    }[];
    resultInfo?: {
        cursors?: {
            after?: string | null;
        } | null;
    } | null;
}
export declare const ListNamespaceObjectsResponse: Schema.Schema<ListNamespaceObjectsResponse>;
export type ListNamespaceObjectsError = DefaultErrors | NamespaceNotFound | InvalidIdentifier | MalformedParameter;
export declare const listNamespaceObjects: API.PaginatedOperationMethod<ListNamespaceObjectsRequest, ListNamespaceObjectsResponse, ListNamespaceObjectsError, Credentials | HttpClient.HttpClient>;
export {};
//# sourceMappingURL=durable-objects.d.ts.map