import { CreateAppInput, GetAppQueryVariables, ListAppsQueryVariables } from '../../gen/graphql';
import { AbowireGraphQLClient } from '../../graphql/graphql-client';
export declare class AppApi {
    private graphQL;
    constructor(graphQL: AbowireGraphQLClient);
    create(input: CreateAppInput): Promise<{
        __typename?: "App" | undefined;
        id: string;
        name: string;
        description?: string | null | undefined;
        contactEmail?: string | null | undefined;
        pageContent?: string | null | undefined;
        isInstalled: boolean;
        isPublic: boolean;
        logoUrl?: string | null | undefined;
        privacyUrl?: string | null | undefined;
        tosUrl?: string | null | undefined;
        accountIds?: string[] | null | undefined;
        createdAt?: any;
        updatedAt?: any;
        apiClients: {
            __typename?: "ApiClient" | undefined;
            id: string;
            type: string;
            secret?: string | null | undefined;
            redirectUrls?: string[] | null | undefined;
            scopes?: import("../../gen/graphql").Scope[] | null | undefined;
        }[];
        webhooks: {
            __typename?: "Webhook" | undefined;
            events: string[];
            endpoint: string;
            headers?: any;
            isActive?: boolean | null | undefined;
        };
        instances?: {
            __typename?: "AppInstanceList" | undefined;
            count: number;
            total: number;
            cursor?: string | null | undefined;
            items: {
                __typename?: "AppInstance" | undefined;
                id: string;
                account: {
                    __typename?: "Account" | undefined;
                    id: string;
                    name: string;
                };
            }[];
        } | null | undefined;
    }>;
    get(id?: string, input?: Partial<GetAppQueryVariables>): Promise<{
        __typename?: "App" | undefined;
        id: string;
        name: string;
        description?: string | null | undefined;
        contactEmail?: string | null | undefined;
        pageContent?: string | null | undefined;
        isInstalled: boolean;
        isPublic: boolean;
        logoUrl?: string | null | undefined;
        privacyUrl?: string | null | undefined;
        tosUrl?: string | null | undefined;
        accountIds?: string[] | null | undefined;
        createdAt?: any;
        updatedAt?: any;
        apiClients: {
            __typename?: "ApiClient" | undefined;
            id: string;
            type: string;
            secret?: string | null | undefined;
            redirectUrls?: string[] | null | undefined;
            scopes?: import("../../gen/graphql").Scope[] | null | undefined;
        }[];
        webhooks: {
            __typename?: "Webhook" | undefined;
            events: string[];
            endpoint: string;
            headers?: any;
            isActive?: boolean | null | undefined;
        };
        instances?: {
            __typename?: "AppInstanceList" | undefined;
            count: number;
            total: number;
            cursor?: string | null | undefined;
            items: {
                __typename?: "AppInstance" | undefined;
                id: string;
                account: {
                    __typename?: "Account" | undefined;
                    id: string;
                    name: string;
                };
            }[];
        } | null | undefined;
    }>;
    list(input?: Partial<ListAppsQueryVariables>): Promise<{
        __typename?: "AppList" | undefined;
        count: number;
        total: number;
        cursor?: string | null | undefined;
        items: {
            __typename?: "App" | undefined;
            id: string;
            name: string;
            description?: string | null | undefined;
            contactEmail?: string | null | undefined;
            pageContent?: string | null | undefined;
            isInstalled: boolean;
            isPublic: boolean;
            logoUrl?: string | null | undefined;
            privacyUrl?: string | null | undefined;
            tosUrl?: string | null | undefined;
            accountIds?: string[] | null | undefined;
            createdAt?: any;
            updatedAt?: any;
            apiClients: {
                __typename?: "ApiClient" | undefined;
                id: string;
                type: string;
                secret?: string | null | undefined;
                redirectUrls?: string[] | null | undefined;
                scopes?: import("../../gen/graphql").Scope[] | null | undefined;
            }[];
            webhooks: {
                __typename?: "Webhook" | undefined;
                events: string[];
                endpoint: string;
                headers?: any;
                isActive?: boolean | null | undefined;
            };
            instances?: {
                __typename?: "AppInstanceList" | undefined;
                count: number;
                total: number;
                cursor?: string | null | undefined;
                items: {
                    __typename?: "AppInstance" | undefined;
                    id: string;
                    account: {
                        __typename?: "Account" | undefined;
                        id: string;
                        name: string;
                    };
                }[];
            } | null | undefined;
        }[];
    }>;
}
