import { z } from 'zod'; export declare const ConfigureIAMInputSchema: z.ZodObject<{ projectId: z.ZodString; userEmail: z.ZodString; }, "strip", z.ZodTypeAny, { projectId: string; userEmail: string; }, { projectId: string; userEmail: string; }>; export type ConfigureIAMInput = z.infer; export declare const EnableAPIInputSchema: z.ZodObject<{ projectId: z.ZodString; }, "strip", z.ZodTypeAny, { projectId: string; }, { projectId: string; }>; export type EnableAPIInput = z.infer; export declare const TestConnectionInputSchema: z.ZodObject<{ projectId: z.ZodString; accessToken: z.ZodString; }, "strip", z.ZodTypeAny, { projectId: string; accessToken: string; }, { projectId: string; accessToken: string; }>; export type TestConnectionInput = z.infer; export declare const TestConnectionWithApiKeyInputSchema: z.ZodObject<{ apiKey: z.ZodString; }, "strip", z.ZodTypeAny, { apiKey: string; }, { apiKey: string; }>; export type TestConnectionWithApiKeyInput = z.infer; export declare const StitchErrorCode: z.ZodEnum<["IAM_CONFIG_FAILED", "API_ENABLE_FAILED", "CONNECTION_TEST_FAILED", "PERMISSION_DENIED", "UNKNOWN_ERROR"]>; export declare const IAMConfigSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ role: z.ZodString; member: z.ZodString; }, "strip", z.ZodTypeAny, { role: string; member: string; }, { role: string; member: string; }>; }, "strip", z.ZodTypeAny, { success: true; data: { role: string; member: string; }; }, { success: true; data: { role: string; member: string; }; }>; export declare const IAMConfigFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["IAM_CONFIG_FAILED", "API_ENABLE_FAILED", "CONNECTION_TEST_FAILED", "PERMISSION_DENIED", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }, { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }; }, { success: false; error: { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }; }>; export type IAMConfigResult = z.infer | z.infer; export declare const APIEnableSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ api: z.ZodString; enabled: z.ZodBoolean; }, "strip", z.ZodTypeAny, { api: string; enabled: boolean; }, { api: string; enabled: boolean; }>; }, "strip", z.ZodTypeAny, { success: true; data: { api: string; enabled: boolean; }; }, { success: true; data: { api: string; enabled: boolean; }; }>; export declare const APIEnableFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["IAM_CONFIG_FAILED", "API_ENABLE_FAILED", "CONNECTION_TEST_FAILED", "PERMISSION_DENIED", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }, { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }; }, { success: false; error: { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }; }>; export type APIEnableResult = z.infer | z.infer; export declare const ConnectionTestSuccess: z.ZodObject<{ success: z.ZodLiteral; data: z.ZodObject<{ connected: z.ZodBoolean; statusCode: z.ZodNumber; url: z.ZodString; response: z.ZodOptional; }, "strip", z.ZodTypeAny, { connected: boolean; statusCode: number; url: string; response?: any; }, { connected: boolean; statusCode: number; url: string; response?: any; }>; }, "strip", z.ZodTypeAny, { success: true; data: { connected: boolean; statusCode: number; url: string; response?: any; }; }, { success: true; data: { connected: boolean; statusCode: number; url: string; response?: any; }; }>; export declare const ConnectionTestFailure: z.ZodObject<{ success: z.ZodLiteral; error: z.ZodObject<{ code: z.ZodEnum<["IAM_CONFIG_FAILED", "API_ENABLE_FAILED", "CONNECTION_TEST_FAILED", "PERMISSION_DENIED", "UNKNOWN_ERROR"]>; message: z.ZodString; suggestion: z.ZodOptional; recoverable: z.ZodBoolean; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }, { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }>; }, "strip", z.ZodTypeAny, { success: false; error: { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }; }, { success: false; error: { code: "UNKNOWN_ERROR" | "IAM_CONFIG_FAILED" | "API_ENABLE_FAILED" | "CONNECTION_TEST_FAILED" | "PERMISSION_DENIED"; message: string; recoverable: boolean; suggestion?: string | undefined; details?: string | undefined; }; }>; export type ConnectionTestResult = z.infer | z.infer; export interface StitchService { /** * Configure IAM permissions for Stitch API */ configureIAM(input: ConfigureIAMInput): Promise; /** * Enable Stitch API for the project */ enableAPI(input: EnableAPIInput): Promise; /** * Test the connection to the Stitch API */ testConnection(input: TestConnectionInput): Promise; /** * Test the connection to the Stitch API using an API key */ testConnectionWithApiKey(input: TestConnectionWithApiKeyInput): Promise; /** * Check if a user has a specific IAM role on a project */ checkIAMRole(input: { projectId: string; userEmail: string; }): Promise; /** * Check if the Stitch API is enabled for a project */ checkAPIEnabled(input: { projectId: string; }): Promise; }