import { components } from '../lib/api/v1.js'; export interface ApiKeyScope { organization_id: string; project_id?: string; environment_id?: string; } export type MemberAccessObj = 'org' | 'project' | 'env'; export type ApiKeyCreate = components['schemas']['APIKeyCreate']; export declare const useApiKeyApi: () => { getProjectEnvironmentApiKey: (environmentId: string, projectId?: string, cookie?: string) => Promise, "application/json">, "error"> & { error: string | null; }>; getApiKeyScope: (accessToken?: string) => Promise | undefined, "application/json">, "error"> & { error: string | null; }>; getApiKeyList: (objectType: MemberAccessObj, projectId?: string | null, accessToken?: string, cookie?: string | null) => Promise | undefined, "application/json">, "error"> & { error: string | null; }>; getApiKeyById: (apiKeyId: string, accessToken?: string, cookie?: string | null) => Promise, "application/json">, "error"> & { error: string | null; }>; createApiKey: (body: ApiKeyCreate, accessToken?: string | null, cookie?: string | null) => Promise, "application/json">, "error"> & { error: string | null; }>; validateApiKeyScope: (apiKey: string, keyLevel: "organization" | "project" | "environment") => Promise<{ valid: boolean; scope: null; error: string; } | { valid: boolean; scope: { organization_id: string; project_id?: string; environment_id?: string; } | undefined; error: string | null; }>; validateApiKey: (apiKey: string) => boolean | ""; };