import type { AppDefinition, ConnectionMethodDef, FieldDef } from "./types/app-definition.js"; import type { ToolConnectionOwnership } from "./types/tool-access.js"; export declare const CONNECTABLE_APP_SLUGS: Set; export declare const CONNECTABLE_APP_DEFINITIONS: AppDefinition[]; /** * Definitions retained for existing connections and later verification, but * intentionally withheld from the customer-facing store. Keeping visibility * separate from recognition avoids breaking saved connections when a provider * is pulled from Browse or reserved for a future first-party experience. */ export declare const APP_STORE_HIDDEN_SLUGS: Set; export declare const APP_STORE_DEFINITIONS: AppDefinition[]; export declare const DEFAULT_OWNERSHIP_AVAILABILITY: Record; export declare function getConnectableAppDefinition(slug: string): AppDefinition | null; export declare function getAppStoreDefinition(slug: string): AppDefinition | null; export declare function isAppStoreVisibleSlug(slug: string | null | undefined): boolean; export declare function getAppDefinitionForUrl(link: string, definitions?: readonly AppDefinition[]): AppDefinition | null; export declare function getAvailableConnectionMethods(app: AppDefinition): ConnectionMethodDef[]; /** * Pick the method that gives a new connection the app's useful write surface. * * Google Workspace publishes separate read and write capability groups. The * read method is intentionally listed first for documentation, but treating * array order as a product default silently created read-only connections and * left every write action Off. Capability metadata is the durable signal; apps * without an explicit write/draft capability retain their declared order. */ export declare function getRecommendedConnectionMethod(methods: readonly ConnectionMethodDef[]): ConnectionMethodDef | null; export declare function getAvailableConnectionMethod(app: AppDefinition, methodKey?: string | null): ConnectionMethodDef | null; export declare function connectionMethodSupportsAutomaticOAuth(method: ConnectionMethodDef | null | undefined): boolean; export declare function connectionMethodAcceptsCustomerOAuthClient(method: ConnectionMethodDef | null | undefined): boolean; export declare function connectionMethodSupportsCatalogSetup(method: ConnectionMethodDef | null | undefined): boolean; export declare function connectionMethodRequiresConfiguration(method: ConnectionMethodDef | null | undefined): boolean; export declare function appSupportsCatalogSetup(app: AppDefinition | null | undefined): boolean; export declare function isConnectableAppSlug(slug: string | null | undefined): boolean; export declare function appSupportsAutomaticOAuth(app: AppDefinition | null | undefined): boolean; export declare function appAcceptsCustomerOAuthClient(app: AppDefinition | null | undefined): boolean; export declare function credentialConfigPath(field: FieldDef, method?: ConnectionMethodDef | null): string; /** Older credential references used bare names; current references use paths. */ export declare function connectionCredentialConfigPath(ref: { name: string; }): string; export declare function resolveConnectionMethodServerUrl(method: ConnectionMethodDef, configValues: Record): string | null; export declare function recommendedDefaultsForApp(app: AppDefinition, methodKey?: string | null): Record; //# sourceMappingURL=app-definitions.d.ts.map