import { components } from '../lib/api/v1.js'; export type EnvironmentCopy = components['schemas']['EnvironmentCopy']; export type CreateEnvironmentParams = { key: string; name: string; description?: string; custom_branch_name?: string; jwks?: { ttl: number; url?: string; jwks?: { keys: Record[]; }; }; settings?: Record; }; export declare const useEnvironmentApi: () => { getEnvironments: (project_id: string, accessToken?: string, cookie?: string | null) => Promise, "application/json">, "error"> & { error: string | null; }>; getEnvironment: (project_id: string, environment_id: string, accessToken?: string | null, cookie?: string | null) => Promise, "application/json">, "error"> & { error: string | null; }>; copyEnvironment: (proj_id: string, env_id: string, body: EnvironmentCopy) => Promise, "application/json">, "error"> & { error: string | null; }>; createEnvironment: (projectId: string, accessToken?: string, cookie?: string | null, params?: CreateEnvironmentParams) => Promise, "application/json">, "error"> & { error: string | null; }>; deleteEnvironment: (projectId: string, environmentId: string, accessToken?: string, cookie?: string | null) => Promise<(Omit, "application/json">, "error"> & { error: string | null; }) | { data: null; response: { status: number; }; error: null; }>; };