import * as HttpApi from "@effect/platform/HttpApi";
import * as HttpApiEndpoint from "@effect/platform/HttpApiEndpoint";
import * as HttpApiError from "@effect/platform/HttpApiError";
import * as HttpApiGroup from "@effect/platform/HttpApiGroup";
import * as HttpClient from "@effect/platform/HttpClient";
import type * as HttpClientError from "@effect/platform/HttpClientError";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Schema from "effect/Schema";
import * as Model from "../Model.ts";
import * as Error from "./Error.ts";
export type HttpError = HttpApiError.Forbidden | HttpApiError.Unauthorized | HttpClientError.HttpClientError;
declare const RegisterDatasetPayload_base: Schema.Class<RegisterDatasetPayload, {
    namespace: Schema.PropertySignature<":", string, "namespace", ":", string, false, never>;
    name: Schema.PropertySignature<":", string, "name", ":", string, false, never>;
    version: Schema.PropertySignature<"?:", string | undefined, "version", "?:", string | undefined, false, never>;
    manifest: Schema.Union<[typeof Model.DatasetDerived, typeof Model.DatasetEvmRpc, typeof Model.DatasetEthBeacon, typeof Model.DatasetFirehose]>;
}, Schema.Struct.Encoded<{
    namespace: Schema.PropertySignature<":", string, "namespace", ":", string, false, never>;
    name: Schema.PropertySignature<":", string, "name", ":", string, false, never>;
    version: Schema.PropertySignature<"?:", string | undefined, "version", "?:", string | undefined, false, never>;
    manifest: Schema.Union<[typeof Model.DatasetDerived, typeof Model.DatasetEvmRpc, typeof Model.DatasetEthBeacon, typeof Model.DatasetFirehose]>;
}>, never, {
    readonly manifest: Model.DatasetDerived | Model.DatasetEvmRpc | Model.DatasetEthBeacon | Model.DatasetFirehose;
} & {
    readonly namespace: string;
} & {
    readonly name: string;
} & {
    readonly version?: string | undefined;
}, {}, {}>;
export declare class RegisterDatasetPayload extends RegisterDatasetPayload_base {
}
/**
 * Error type for the `registerDataset` endpoint.
 *
 * - InvalidPayloadFormat: Request JSON is malformed or invalid.
 * - InvalidManifest: Manifest JSON is malformed or structurally invalid.
 * - ManifestValidationError: Manifest validation error (e.g., non-incremental operations).
 * - UnsupportedDatasetKind: Dataset kind is not supported.
 * - ManifestRegistrationError: Failed to register manifest in system.
 * - ManifestLinkingError: Failed to link manifest to dataset.
 * - VersionTaggingError: Failed to tag version for the dataset.
 * - StoreError: Dataset store operation error.
 * - ManifestNotFound: Manifest hash provided but manifest doesn't exist.
 */
export type RegisterDatasetError = Error.InvalidPayloadFormat | Error.InvalidManifest | Error.ManifestValidationError | Error.UnsupportedDatasetKind | Error.ManifestRegistrationError | Error.ManifestLinkingError | Error.VersionTaggingError | Error.StoreError | Error.ManifestNotFound;
declare const GetDatasetsResponse_base: Schema.Class<GetDatasetsResponse, {
    datasets: Schema.Array$<Schema.Struct<{
        namespace: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetNamespace">;
        name: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetName">;
        latestVersion: Schema.PropertySignature<"?:", (string & import("effect/Brand").Brand<"DatasetVersion">) | undefined, "latest_version", "?:", string | undefined, false, never>;
        versions: Schema.Array$<Schema.brand<Schema.refine<string, typeof Schema.String>, "DatasetVersion">>;
    }>>;
}, Schema.Struct.Encoded<{
    datasets: Schema.Array$<Schema.Struct<{
        namespace: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetNamespace">;
        name: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetName">;
        latestVersion: Schema.PropertySignature<"?:", (string & import("effect/Brand").Brand<"DatasetVersion">) | undefined, "latest_version", "?:", string | undefined, false, never>;
        versions: Schema.Array$<Schema.brand<Schema.refine<string, typeof Schema.String>, "DatasetVersion">>;
    }>>;
}>, never, {
    readonly datasets: readonly {
        readonly namespace: string & import("effect/Brand").Brand<"DatasetNamespace">;
        readonly name: string & import("effect/Brand").Brand<"DatasetName">;
        readonly latestVersion?: (string & import("effect/Brand").Brand<"DatasetVersion">) | undefined;
        readonly versions: readonly (string & import("effect/Brand").Brand<"DatasetVersion">)[];
    }[];
}, {}, {}>;
export declare class GetDatasetsResponse extends GetDatasetsResponse_base {
}
/**
 * Error type for the `getDatasets` endpoint.
 *
 * - DatasetStoreError: Failed to retrieve datasets from the dataset store.
 * - MetadataDbError: Database error while retrieving active locations for tables.
 */
export type GetDatasetsError = Error.DatasetStoreError | Error.MetadataDbError;
declare const GetDatasetVersionsResponse_base: Schema.Class<GetDatasetVersionsResponse, {
    versions: Schema.Array$<Schema.brand<Schema.refine<string, typeof Schema.String>, "DatasetVersion">>;
}, Schema.Struct.Encoded<{
    versions: Schema.Array$<Schema.brand<Schema.refine<string, typeof Schema.String>, "DatasetVersion">>;
}>, never, {
    readonly versions: readonly (string & import("effect/Brand").Brand<"DatasetVersion">)[];
}, {}, {}>;
export declare class GetDatasetVersionsResponse extends GetDatasetVersionsResponse_base {
}
/**
 * Error type for the `getDatasetVersions` endpoint.
 *
 * - InvalidRequest: Invalid namespace or name in path parameters.
 * - DatasetStoreError: Failed to list version tags from dataset store.
 * - MetadataDbError: Database error while retrieving versions.
 */
export type GetDatasetVersionsError = Error.InvalidRequest | Error.DatasetStoreError | Error.MetadataDbError;
declare const GetDatasetVersionResponse_base: Schema.Class<GetDatasetVersionResponse, {
    namespace: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetNamespace">;
    name: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetName">;
    revision: Schema.Union<[Schema.brand<Schema.refine<string, typeof Schema.String>, "DatasetVersion">, Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetHash">, Schema.brand<Schema.Literal<["latest", "dev"]>, "DatasetTag">]>;
    manifestHash: Schema.PropertySignature<":", string & import("effect/Brand").Brand<"DatasetHash">, "manifest_hash", ":", string, false, never>;
    kind: Schema.brand<Schema.Literal<["manifest", "evm-rpc", "eth-beacon", "firehose"]>, "DatasetKind">;
}, Schema.Struct.Encoded<{
    namespace: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetNamespace">;
    name: Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetName">;
    revision: Schema.Union<[Schema.brand<Schema.refine<string, typeof Schema.String>, "DatasetVersion">, Schema.brand<Schema.refine<string, Schema.filter<typeof Schema.String>>, "DatasetHash">, Schema.brand<Schema.Literal<["latest", "dev"]>, "DatasetTag">]>;
    manifestHash: Schema.PropertySignature<":", string & import("effect/Brand").Brand<"DatasetHash">, "manifest_hash", ":", string, false, never>;
    kind: Schema.brand<Schema.Literal<["manifest", "evm-rpc", "eth-beacon", "firehose"]>, "DatasetKind">;
}>, never, {
    readonly namespace: string & import("effect/Brand").Brand<"DatasetNamespace">;
} & {
    readonly name: string & import("effect/Brand").Brand<"DatasetName">;
} & {
    readonly revision: (string & import("effect/Brand").Brand<"DatasetVersion">) | (string & import("effect/Brand").Brand<"DatasetHash">) | (("latest" | "dev") & import("effect/Brand").Brand<"DatasetTag">);
} & {
    readonly kind: ("manifest" | "evm-rpc" | "eth-beacon" | "firehose") & import("effect/Brand").Brand<"DatasetKind">;
} & {
    readonly manifestHash: string & import("effect/Brand").Brand<"DatasetHash">;
}, {}, {}>;
export declare class GetDatasetVersionResponse extends GetDatasetVersionResponse_base {
}
/**
 * Error type for the `getDatasetVersion` endpoint.
 *
 * - InvalidRequest: Invalid namespace, name, or revision in path parameters.
 * - DatasetNotFound: The dataset or revision was not found.
 * - DatasetStoreError: Failed to load dataset from store.
 * - MetadataDbError: Database error while retrieving dataset information.
 */
export type GetDatasetVersionError = Error.InvalidRequest | Error.DatasetNotFound | Error.DatasetStoreError | Error.MetadataDbError;
declare const DeployDatasetPayload_base: Schema.Class<DeployDatasetPayload, {
    endBlock: Schema.PropertySignature<"?:", string | null | undefined, "end_block", "?:", string | null | undefined, false, never>;
    parallelism: Schema.optional<typeof Schema.Number>;
}, Schema.Struct.Encoded<{
    endBlock: Schema.PropertySignature<"?:", string | null | undefined, "end_block", "?:", string | null | undefined, false, never>;
    parallelism: Schema.optional<typeof Schema.Number>;
}>, never, {
    readonly endBlock?: string | null | undefined;
} & {
    readonly parallelism?: number | undefined;
}, {}, {}>;
export declare class DeployDatasetPayload extends DeployDatasetPayload_base {
}
declare const DeployDatasetResponse_base: Schema.Class<DeployDatasetResponse, {
    jobId: Schema.PropertySignature<":", number, "job_id", ":", number, false, never>;
}, Schema.Struct.Encoded<{
    jobId: Schema.PropertySignature<":", number, "job_id", ":", number, false, never>;
}>, never, {
    readonly jobId: number;
}, {}, {}>;
export declare class DeployDatasetResponse extends DeployDatasetResponse_base {
}
/**
 * Error type for the `deployDataset` endpoint.
 *
 * - InvalidRequest: Invalid path parameters or request body.
 * - DatasetNotFound: The dataset or revision was not found.
 * - DatasetStoreError: Failed to load dataset from store.
 * - SchedulerError: Failed to schedule the deployment job.
 * - MetadataDbError: Database error while scheduling job.
 */
export type DeployDatasetError = Error.InvalidRequest | Error.DatasetNotFound | Error.DatasetStoreError | Error.SchedulerError | Error.MetadataDbError;
/**
 * Error type for the `getDatasetManifest` endpoint.
 *
 * - InvalidRequest: Invalid namespace, name, or revision in path parameters.
 * - DatasetNotFound: The dataset, revision, or manifest was not found.
 * - DatasetStoreError: Failed to read manifest from store.
 * - MetadataDbError: Database error while retrieving manifest path.
 */
export type GetDatasetManifestError = Error.InvalidRequest | Error.DatasetNotFound | Error.DatasetStoreError | Error.MetadataDbError;
/**
 * Error type for the `getJobById` endpoint.
 *
 * - InvalidJobId: The provided ID is not a valid job identifier.
 * - JobNotFound: No job exists with the given ID.
 * - MetadataDbError: Internal database error occurred.
 */
export type GetJobByIdError = Error.InvalidJobId | Error.JobNotFound | Error.MetadataDbError;
declare const GetOutputSchemaPayload_base: Schema.Class<GetOutputSchemaPayload, {
    tables: Schema.Record$<typeof Schema.String, typeof Schema.String>;
    dependencies: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Schema<Model.DatasetReference, string, never>>>;
    functions: Schema.optional<Schema.Record$<typeof Schema.String, typeof Model.FunctionDefinition>>;
}, Schema.Struct.Encoded<{
    tables: Schema.Record$<typeof Schema.String, typeof Schema.String>;
    dependencies: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Schema<Model.DatasetReference, string, never>>>;
    functions: Schema.optional<Schema.Record$<typeof Schema.String, typeof Model.FunctionDefinition>>;
}>, never, {
    readonly dependencies?: {
        readonly [x: string]: Model.DatasetReference;
    } | undefined;
} & {
    readonly tables: {
        readonly [x: string]: string;
    };
} & {
    readonly functions?: {
        readonly [x: string]: Model.FunctionDefinition;
    } | undefined;
}, {}, {}>;
export declare class GetOutputSchemaPayload extends GetOutputSchemaPayload_base {
}
declare const GetOutputSchemaResponse_base: Schema.Class<GetOutputSchemaResponse, {
    schemas: Schema.Record$<typeof Schema.String, typeof Model.TableSchemaWithNetworks>;
}, Schema.Struct.Encoded<{
    schemas: Schema.Record$<typeof Schema.String, typeof Model.TableSchemaWithNetworks>;
}>, never, {
    readonly schemas: {
        readonly [x: string]: Model.TableSchemaWithNetworks;
    };
}, {}, {}>;
export declare class GetOutputSchemaResponse extends GetOutputSchemaResponse_base {
}
/**
 * Error type for the `getOutputSchema` endpoint.
 *
 * - InvalidPayloadFormat: Request JSON is malformed or missing required fields.
 * - EmptyTablesAndFunctions: No tables or functions provided (at least one required).
 * - InvalidTableSql: SQL query has invalid syntax.
 * - TableReferenceResolution: Failed to resolve table references in SQL.
 * - FunctionReferenceResolution: Failed to resolve function references in SQL.
 * - DependencyNotFound: Referenced dependency does not exist.
 * - DependencyResolution: Failed to resolve dependency to hash.
 * - CatalogQualifiedTable: Table reference includes catalog qualifier (not supported).
 * - UnqualifiedTable: Table reference is not qualified with dataset.
 * - InvalidTableName: Table name does not conform to SQL identifier rules.
 * - DatasetNotFound: Referenced dataset does not exist in the store.
 * - GetDatasetError: Failed to retrieve dataset from store.
 * - EthCallUdfCreationError: Failed to create ETH call UDF.
 * - TableNotFoundInDataset: Referenced table does not exist in dataset.
 * - FunctionNotFoundInDataset: Referenced function does not exist in dataset.
 * - EthCallNotAvailable: eth_call function not available for dataset.
 * - DependencyAliasNotFound: Table or function reference uses undefined alias.
 * - SchemaInference: Failed to infer schema for table.
 */
export type GetOutputSchemaError = Error.InvalidPayloadFormat | Error.EmptyTablesAndFunctions | Error.InvalidTableSql | Error.TableReferenceResolution | Error.FunctionReferenceResolution | Error.DependencyNotFound | Error.DependencyResolution | Error.CatalogQualifiedTable | Error.UnqualifiedTable | Error.InvalidTableName | Error.DatasetNotFound | Error.GetDatasetError | Error.EthCallUdfCreationError | Error.TableNotFoundInDataset | Error.FunctionNotFoundInDataset | Error.EthCallNotAvailable | Error.DependencyAliasNotFound | Error.SchemaInference;
declare const DatasetGroup_base: HttpApiGroup.HttpApiGroup<"dataset", HttpApiEndpoint.HttpApiEndpoint<"registerDataset", "POST", never, never, RegisterDatasetPayload, never, void, Error.InvalidManifest | Error.ManifestRegistrationError | Error.ManifestLinkingError | Error.VersionTaggingError | Error.ManifestValidationError | Error.UnsupportedDatasetKind | Error.ManifestNotFound | Error.InvalidPayloadFormat | Error.StoreError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDatasets", "GET", never, never, never, never, GetDatasetsResponse, Error.MetadataDbError | Error.DatasetStoreError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDatasetVersions", "GET", {
    readonly namespace: string & import("effect/Brand").Brand<"DatasetNamespace">;
    readonly name: string & import("effect/Brand").Brand<"DatasetName">;
}, never, never, never, GetDatasetVersionsResponse, Error.MetadataDbError | Error.DatasetStoreError | Error.InvalidRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDatasetVersion", "GET", {
    readonly namespace: string & import("effect/Brand").Brand<"DatasetNamespace">;
    readonly name: string & import("effect/Brand").Brand<"DatasetName">;
    readonly revision: string;
}, never, never, never, GetDatasetVersionResponse, Error.MetadataDbError | Error.DatasetStoreError | Error.DatasetNotFound | Error.InvalidRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deployDataset", "POST", {
    readonly namespace: string & import("effect/Brand").Brand<"DatasetNamespace">;
    readonly name: string & import("effect/Brand").Brand<"DatasetName">;
    readonly revision: string;
}, never, DeployDatasetPayload, never, DeployDatasetResponse, Error.SchedulerError | Error.MetadataDbError | Error.DatasetStoreError | Error.DatasetNotFound | Error.InvalidRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDatasetManifest", "GET", {
    readonly namespace: string & import("effect/Brand").Brand<"DatasetNamespace">;
    readonly name: string & import("effect/Brand").Brand<"DatasetName">;
    readonly revision: string;
}, never, never, never, Model.DatasetDerived | Model.DatasetEvmRpc | Model.DatasetEthBeacon | Model.DatasetFirehose, Error.MetadataDbError | Error.DatasetStoreError | Error.DatasetNotFound | Error.InvalidRequest, never, never>, never, never, false>;
/**
 * The api group for the dataset endpoints.
 */
export declare class DatasetGroup extends DatasetGroup_base {
}
declare const JobGroup_base: HttpApiGroup.HttpApiGroup<"job", HttpApiEndpoint.HttpApiEndpoint<"getJobById", "GET", {
    readonly jobId: number;
}, never, never, never, Model.JobInfo, Error.MetadataDbError | Error.JobNotFound | Error.InvalidJobId, never, never>, never, never, false>;
/**
 * The api group for the job endpoints.
 */
export declare class JobGroup extends JobGroup_base {
}
declare const SchemaGroup_base: HttpApiGroup.HttpApiGroup<"schema", HttpApiEndpoint.HttpApiEndpoint<"getOutputSchema", "POST", never, never, GetOutputSchemaPayload, never, GetOutputSchemaResponse, Error.DatasetNotFound | Error.TableNotFoundInDataset | Error.InvalidPayloadFormat | Error.UnqualifiedTable | Error.CatalogQualifiedTable | Error.InvalidTableName | Error.GetDatasetError | Error.EthCallUdfCreationError | Error.FunctionNotFoundInDataset | Error.EthCallNotAvailable | Error.DependencyNotFound | Error.DependencyAliasNotFound | Error.EmptyTablesAndFunctions | Error.InvalidTableSql | Error.TableReferenceResolution | Error.FunctionReferenceResolution | Error.DependencyResolution | Error.SchemaInference, never, never>, never, never, false>;
/**
 * The api group for the schema endpoints.
 */
export declare class SchemaGroup extends SchemaGroup_base {
}
declare const Api_base: HttpApi.HttpApi<"admin", typeof DatasetGroup | typeof JobGroup | typeof SchemaGroup, HttpApiError.Forbidden | HttpApiError.Unauthorized | HttpApiError.HttpApiDecodeError, never>;
/**
 * The api definition for the admin api.
 */
export declare class Api extends Api_base {
}
/**
 * Options for dumping a dataset.
 */
export interface DumpDatasetOptions {
    /**
     * The version of the dataset to dump.
     */
    readonly version?: string | undefined;
    /**
     * The block up to which to dump.
     */
    readonly endBlock?: number | undefined;
}
declare const Admin_base: Context.TagClass<Admin, "Amp/Admin", {
    /**
     * Register a dataset manifest.
     *
     * @param namespace The namespace of the dataset to register.
     * @param name The name of the dataset to register.
     * @param version Optional version of the dataset to register. If omitted, only the "dev" tag is updated.
     * @param manifest The dataset manifest to register.
     * @return Whether the registration was successful.
     */
    readonly registerDataset: (namespace: Model.DatasetNamespace, name: Model.DatasetName, manifest: Model.DatasetManifest, version?: Model.DatasetRevision | undefined) => Effect.Effect<void, HttpError | RegisterDatasetError>;
    /**
     * Get all datasets.
     *
     * @return The list of all datasets.
     */
    readonly getDatasets: () => Effect.Effect<GetDatasetsResponse, HttpError | GetDatasetsError>;
    /**
     * Get all versions of a specific dataset.
     *
     * @param namespace The namespace of the dataset.
     * @param name The name of the dataset.
     * @return The list of all dataset versions.
     */
    readonly getDatasetVersions: (namespace: Model.DatasetNamespace, name: Model.DatasetName) => Effect.Effect<GetDatasetVersionsResponse, HttpError | GetDatasetVersionsError>;
    /**
     * Get a specific dataset version.
     *
     * @param namespace The namespace of the dataset.
     * @param name The name of the dataset.
     * @param revision The version/revision of the dataset.
     * @return The dataset version information.
     */
    readonly getDatasetVersion: (namespace: Model.DatasetNamespace, name: Model.DatasetName, revision: Model.DatasetRevision) => Effect.Effect<GetDatasetVersionResponse, HttpError | GetDatasetVersionError>;
    /**
     * Deploy a dataset version.
     *
     * @param namespace The namespace of the dataset.
     * @param name The name of the dataset to deploy.
     * @param revision The version/revision to deploy.
     * @param options The deployment options.
     * @return The deployment response with job ID.
     */
    readonly deployDataset: (namespace: Model.DatasetNamespace, name: Model.DatasetName, revision: Model.DatasetRevision, options?: {
        endBlock?: string | null | undefined;
        parallelism?: number | undefined;
    } | undefined) => Effect.Effect<DeployDatasetResponse, HttpError | DeployDatasetError>;
    /**
     * Get the manifest for a dataset version.
     *
     * @param namespace The namespace of the dataset.
     * @param name The name of the dataset.
     * @param revision The version/revision of the dataset.
     * @return The dataset manifest.
     */
    readonly getDatasetManifest: (namespace: Model.DatasetNamespace, name: Model.DatasetName, revision: Model.DatasetRevision) => Effect.Effect<any, HttpError | GetDatasetManifestError>;
    /**
     * Get a job by ID.
     *
     * @param jobId The ID of the job to get.
     * @return The job information.
     */
    readonly getJobById: (jobId: number) => Effect.Effect<Model.JobInfo, HttpError | GetJobByIdError>;
    /**
     * Gets the schema of a dataset.
     *
     * @param request - The schema request with tables and dependencies.
     * @returns An effect that resolves to the schema response.
     */
    readonly getOutputSchema: (request: GetOutputSchemaPayload) => Effect.Effect<GetOutputSchemaResponse, HttpError | GetOutputSchemaError>;
}>;
/**
 * Service definition for the admin api.
 */
export declare class Admin extends Admin_base {
}
/**
 * Creates an admin api service instance.
 *
 * @param url - The url of the admin api service.
 * @returns An admin api service instance.
 */
export declare const make: (url: string, options?: {
    readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined;
    readonly transformResponse?: ((effect: Effect.Effect<unknown, unknown>) => Effect.Effect<unknown, unknown>) | undefined;
} | undefined) => Effect.Effect<{
    registerDataset: (namespace: string & import("effect/Brand").Brand<"DatasetNamespace">, name: string & import("effect/Brand").Brand<"DatasetName">, manifest: Model.DatasetDerived | Model.DatasetEvmRpc | Model.DatasetEthBeacon | Model.DatasetFirehose, version?: (string & import("effect/Brand").Brand<"DatasetVersion">) | (string & import("effect/Brand").Brand<"DatasetHash">) | (("latest" | "dev") & import("effect/Brand").Brand<"DatasetTag">) | undefined) => Effect.Effect<void, HttpClientError.HttpClientError | Error.InvalidManifest | Error.ManifestRegistrationError | Error.ManifestLinkingError | Error.VersionTaggingError | Error.ManifestValidationError | Error.UnsupportedDatasetKind | Error.ManifestNotFound | Error.InvalidPayloadFormat | Error.StoreError | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    getDatasets: () => Effect.Effect<GetDatasetsResponse, HttpClientError.HttpClientError | Error.MetadataDbError | Error.DatasetStoreError | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    getDatasetVersions: (namespace: string & import("effect/Brand").Brand<"DatasetNamespace">, name: string & import("effect/Brand").Brand<"DatasetName">) => Effect.Effect<GetDatasetVersionsResponse, HttpClientError.HttpClientError | Error.MetadataDbError | Error.DatasetStoreError | Error.InvalidRequest | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    getDatasetVersion: (namespace: string & import("effect/Brand").Brand<"DatasetNamespace">, name: string & import("effect/Brand").Brand<"DatasetName">, revision: (string & import("effect/Brand").Brand<"DatasetVersion">) | (string & import("effect/Brand").Brand<"DatasetHash">) | (("latest" | "dev") & import("effect/Brand").Brand<"DatasetTag">)) => Effect.Effect<GetDatasetVersionResponse, HttpClientError.HttpClientError | Error.MetadataDbError | Error.DatasetStoreError | Error.DatasetNotFound | Error.InvalidRequest | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    deployDataset: (namespace: string & import("effect/Brand").Brand<"DatasetNamespace">, name: string & import("effect/Brand").Brand<"DatasetName">, revision: (string & import("effect/Brand").Brand<"DatasetVersion">) | (string & import("effect/Brand").Brand<"DatasetHash">) | (("latest" | "dev") & import("effect/Brand").Brand<"DatasetTag">), options?: {
        endBlock?: string | null | undefined;
        parallelism?: number | undefined;
    } | undefined) => Effect.Effect<DeployDatasetResponse, HttpClientError.HttpClientError | Error.SchedulerError | Error.MetadataDbError | Error.DatasetStoreError | Error.DatasetNotFound | Error.InvalidRequest | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    getDatasetManifest: (namespace: string & import("effect/Brand").Brand<"DatasetNamespace">, name: string & import("effect/Brand").Brand<"DatasetName">, revision: (string & import("effect/Brand").Brand<"DatasetVersion">) | (string & import("effect/Brand").Brand<"DatasetHash">) | (("latest" | "dev") & import("effect/Brand").Brand<"DatasetTag">)) => Effect.Effect<Model.DatasetDerived | Model.DatasetEvmRpc | Model.DatasetEthBeacon | Model.DatasetFirehose, HttpClientError.HttpClientError | Error.MetadataDbError | Error.DatasetStoreError | Error.DatasetNotFound | Error.InvalidRequest | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    getJobById: (jobId: number) => Effect.Effect<Model.JobInfo, HttpClientError.HttpClientError | Error.MetadataDbError | Error.JobNotFound | Error.InvalidJobId | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
    getOutputSchema: (request: GetOutputSchemaPayload) => Effect.Effect<GetOutputSchemaResponse, HttpClientError.HttpClientError | Error.DatasetNotFound | Error.TableNotFoundInDataset | Error.InvalidPayloadFormat | Error.UnqualifiedTable | Error.CatalogQualifiedTable | Error.InvalidTableName | Error.GetDatasetError | Error.EthCallUdfCreationError | Error.FunctionNotFoundInDataset | Error.EthCallNotAvailable | Error.DependencyNotFound | Error.DependencyAliasNotFound | Error.EmptyTablesAndFunctions | Error.InvalidTableSql | Error.TableReferenceResolution | Error.FunctionReferenceResolution | Error.DependencyResolution | Error.SchemaInference | HttpApiError.Forbidden | HttpApiError.Unauthorized, never>;
}, never, HttpClient.HttpClient>;
/**
 * Creates a layer for the admin api service.
 *
 * @param url - The url of the admin api service.
 * @param token - The bearer token.
 * @returns A layer for the admin api service.
 */
export declare const layer: (url: string, token?: string) => Layer.Layer<Admin, never, never>;
export {};
//# sourceMappingURL=Admin.d.ts.map