import type { FunctionDeployRequest, ListProjectBranchFunctionsData, NeonFunction, NeonFunctionDeployment, NeonFunctionUpdateRequest } from "../../client/types.gen.js"; import type { CallOptions, RequestContext } from "../context.js"; import { type Paginated } from "../paginate.js"; import type { Outcome } from "../result.js"; import { CustomDomains } from "./custom-domains.js"; type ListQuery = Omit, "cursor">; type UpdateInput = NeonFunctionUpdateRequest; export type FunctionsListParams = { projectId: string; branchId: string; } & ListQuery; export type FunctionsGetParams = { projectId: string; branchId: string; slug: string; }; export type FunctionsUpdateParams = FunctionsGetParams & UpdateInput; export type FunctionsDeleteParams = FunctionsGetParams; export type FunctionsDeployParams = FunctionsGetParams & FunctionDeployRequest; /** Branch-scoped Neon Functions. */ export declare class Functions { #private; readonly customDomains: CustomDomains; constructor(ctx: RequestContext); /** @apiCall GET /projects/{project_id}/branches/{branch_id}/functions (cursor-paginated) */ list(params: FunctionsListParams): Paginated; list(params: FunctionsListParams, opts: CallOptions): Paginated; /** @apiCall GET /projects/{project_id}/branches/{branch_id}/functions/{slug} */ get(params: FunctionsGetParams): Promise>; get(params: FunctionsGetParams, opts: CallOptions): Promise>; /** @apiCall PATCH /projects/{project_id}/branches/{branch_id}/functions/{slug} */ update(params: FunctionsUpdateParams): Promise>; update(params: FunctionsUpdateParams, opts: CallOptions): Promise>; /** @apiCall DELETE /projects/{project_id}/branches/{branch_id}/functions/{slug} */ delete(params: FunctionsDeleteParams): Promise>; delete(params: FunctionsDeleteParams, opts: CallOptions): Promise>; /** @apiCall POST /projects/{project_id}/branches/{branch_id}/functions/{slug}/deployments */ deploy(params: FunctionsDeployParams): Promise>; deploy(params: FunctionsDeployParams, opts: CallOptions): Promise>; } export {}; //# sourceMappingURL=functions.d.ts.map