import { NetlifyAPI } from '@netlify/api'; interface AIGatewayContext { token: string; url: string; } interface AIGatewayConfig { api: NetlifyAPI; env: Record; siteID?: string | undefined; siteURL?: string | undefined; accountID?: string | undefined; /** Whether the site has a published deploy. When false, site-scoped tokens are skipped. */ siteHasDeploy?: boolean | undefined; } interface AIProviderEnvVar { key: string; url: string; } interface AIGatewayTokenResponse { token: string; url: string; envVars?: AIProviderEnvVar[]; } declare const fetchAIProviders: ({ api }: { api: NetlifyAPI; }) => Promise; declare const fetchAIGatewayToken: ({ api, siteId, }: { api: NetlifyAPI; siteId: string; }) => Promise; declare const fetchAccountAIGatewayToken: ({ api, accountId, }: { api: NetlifyAPI; accountId: string; }) => Promise; declare const setupAIGateway: (config: AIGatewayConfig) => Promise; declare const parseAIGatewayContext: (aiGatewayValue?: string) => AIGatewayTokenResponse | undefined; export { type AIGatewayConfig, type AIGatewayContext, type AIGatewayTokenResponse, type AIProviderEnvVar, fetchAIGatewayToken, fetchAIProviders, fetchAccountAIGatewayToken, parseAIGatewayContext, setupAIGateway };