export declare const stripDataUri: (s: string) => string; export declare const bundleIdFromAppIdentifier: (ai: string) => string; /** Thrown by rest()/gql() on any non-2xx, GraphQL error payload, or parse failure. */ export declare class AppflowApiError extends Error { readonly status: number | string; constructor(message: string, status: number | string); } interface RawIosProvisioningProfile { application_identifier?: string; name?: string; provisioning_profile_file?: string; } interface RawIosSigning { cert_file?: string; cert_password?: string; provisioning_profiles?: RawIosProvisioningProfile[]; } interface RawIosDistribution { user_name?: string; app_specific_password?: string; apple_app_id?: string | number; team_id?: string; } interface RawAndroidSigning { keystore_file?: string; keystore_password?: string; key_password?: string; key_alias?: string; } interface RawAndroidDistribution { json_key_file?: string; } export declare function mapIosSigning(raw: RawIosSigning | null | undefined): Record; export declare function mapIosDistribution(raw: RawIosDistribution | null | undefined): Record; export declare function mapAndroidSigning(raw: RawAndroidSigning | null | undefined): Record; export declare function mapAndroidDistribution(raw: RawAndroidDistribution | null | undefined): Record; export declare const redactTrace: (method: string, url: string, status: number | string, shapeKeys: string[]) => string; export interface AppflowOrg { id?: string; name?: string; slug: string; } export interface AppflowApp { id: string; name?: string; slug?: string; nativeType?: string; } export declare function createAppflowApi(token: string, log?: (s: string) => void): { listOrgs(): Promise; listApps(slug: string): Promise; listCertificates(appId: string): Promise; listDistribution(appId: string): Promise; fetchIosSigning(appId: string, tag: string): Promise>; fetchAndroidSigning(appId: string, tag: string): Promise>; fetchIosDistribution(appId: string, id: number | string): Promise>; fetchAndroidDistribution(appId: string, id: number | string): Promise>; }; export {};