import { PerfTracker } from '../helpers/perf';
export declare const handleSendCredentialEvent: (ctx: {
    domain: string;
}, profile: {
    profileId: string;
}, listingId: string, event: Record<string, unknown>, perfTracker?: PerfTracker) => Promise<Record<string, unknown>>;
export declare const appStoreRouter: import("@trpc/server").TRPCBuiltRouter<{
    ctx: import(".././routes/index").Context;
    meta: import(".././routes/index").RouteMetadata;
    errorShape: import("@trpc/server").TRPCDefaultErrorShape;
    transformer: true;
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
    createListing: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            integrationId: string;
            listing: {
                launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
                display_name: string;
                tagline: string;
                full_description: string;
                icon_url: string;
                launch_config_json: string;
                category?: string | undefined;
                promo_video_url?: string | undefined;
                ios_app_store_id?: string | undefined;
                android_app_store_id?: string | undefined;
                privacy_policy_url?: string | undefined;
                terms_url?: string | undefined;
                hero_background_color?: string | undefined;
                min_age?: number | undefined;
                age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
                contact_email?: string | undefined;
                highlights?: string[] | undefined;
                screenshots?: string[] | undefined;
            };
        };
        output: string;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getListing: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: {
            app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
            launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
            listing_id: string;
            display_name: string;
            tagline: string;
            full_description: string;
            icon_url: string;
            launch_config_json: string;
            category?: string | undefined;
            slug?: string | undefined;
            promo_video_url?: string | undefined;
            promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
            ios_app_store_id?: string | undefined;
            android_app_store_id?: string | undefined;
            privacy_policy_url?: string | undefined;
            terms_url?: string | undefined;
            hero_background_color?: string | undefined;
            min_age?: number | undefined;
            age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
            submitted_at?: string | undefined;
            contact_email?: string | undefined;
            highlights?: string[] | undefined;
            screenshots?: string[] | undefined;
            submitter?: {
                profileId: string;
                displayName: string;
                email?: string | undefined;
            } | undefined;
        } | undefined;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getListingsForIntegration: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            integrationId: string;
            limit?: number | undefined;
            cursor?: string | undefined;
        };
        output: {
            hasMore: boolean;
            records: {
                app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
                launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
                listing_id: string;
                display_name: string;
                tagline: string;
                full_description: string;
                icon_url: string;
                launch_config_json: string;
                category?: string | undefined;
                slug?: string | undefined;
                promo_video_url?: string | undefined;
                promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
                ios_app_store_id?: string | undefined;
                android_app_store_id?: string | undefined;
                privacy_policy_url?: string | undefined;
                terms_url?: string | undefined;
                hero_background_color?: string | undefined;
                min_age?: number | undefined;
                age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
                submitted_at?: string | undefined;
                contact_email?: string | undefined;
                highlights?: string[] | undefined;
                screenshots?: string[] | undefined;
                submitter?: {
                    profileId: string;
                    displayName: string;
                    email?: string | undefined;
                } | undefined;
            }[];
            cursor?: string | undefined;
        };
        meta: import(".././routes/index").RouteMetadata;
    }>;
    countListingsForIntegration: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            integrationId: string;
        };
        output: number;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    updateListing: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            updates: {
                category?: string | undefined;
                launch_type?: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR" | undefined;
                display_name?: string | undefined;
                tagline?: string | undefined;
                full_description?: string | undefined;
                icon_url?: string | undefined;
                launch_config_json?: string | undefined;
                promo_video_url?: string | undefined;
                ios_app_store_id?: string | undefined;
                android_app_store_id?: string | undefined;
                privacy_policy_url?: string | undefined;
                terms_url?: string | undefined;
                hero_background_color?: string | undefined;
                min_age?: number | undefined;
                age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
                contact_email?: string | undefined;
                highlights?: string[] | undefined;
                screenshots?: string[] | undefined;
            };
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    associateListingWithSigningAuthority: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            endpoint: string;
            name: string;
            did: string;
            isPrimary?: boolean | undefined;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getListingSigningAuthority: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: {
            endpoint: string;
            name: string;
            did: string;
            isPrimary: boolean;
        } | undefined;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getIntegrationForListing: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: {
            id: string;
            name: string;
            publishableKey: string;
            whitelistedDomains: string[];
            status: "active" | "setup" | "paused";
            description?: string | undefined;
            guideType?: string | undefined;
            guideState?: Record<string, any> | undefined;
            createdAt?: string | undefined;
            updatedAt?: string | undefined;
        } | undefined;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    submitForReview: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    unsubmitForReview: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    deleteListing: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    browseListedApps: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            limit?: number | undefined;
            cursor?: string | undefined;
            category?: string | undefined;
            promotionLevel?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
        } | undefined;
        output: {
            hasMore: boolean;
            records: {
                app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
                launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
                listing_id: string;
                display_name: string;
                tagline: string;
                full_description: string;
                icon_url: string;
                launch_config_json: string;
                category?: string | undefined;
                slug?: string | undefined;
                promo_video_url?: string | undefined;
                promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
                ios_app_store_id?: string | undefined;
                android_app_store_id?: string | undefined;
                privacy_policy_url?: string | undefined;
                terms_url?: string | undefined;
                hero_background_color?: string | undefined;
                min_age?: number | undefined;
                age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
                submitted_at?: string | undefined;
                contact_email?: string | undefined;
                highlights?: string[] | undefined;
                screenshots?: string[] | undefined;
                submitter?: {
                    profileId: string;
                    displayName: string;
                    email?: string | undefined;
                } | undefined;
            }[];
            cursor?: string | undefined;
        };
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getPublicListing: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: {
            app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
            launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
            listing_id: string;
            display_name: string;
            tagline: string;
            full_description: string;
            icon_url: string;
            launch_config_json: string;
            category?: string | undefined;
            slug?: string | undefined;
            promo_video_url?: string | undefined;
            promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
            ios_app_store_id?: string | undefined;
            android_app_store_id?: string | undefined;
            privacy_policy_url?: string | undefined;
            terms_url?: string | undefined;
            hero_background_color?: string | undefined;
            min_age?: number | undefined;
            age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
            submitted_at?: string | undefined;
            contact_email?: string | undefined;
            highlights?: string[] | undefined;
            screenshots?: string[] | undefined;
            submitter?: {
                profileId: string;
                displayName: string;
                email?: string | undefined;
            } | undefined;
        } | undefined;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getPublicListingBySlug: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            slug: string;
        };
        output: {
            app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
            launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
            listing_id: string;
            display_name: string;
            tagline: string;
            full_description: string;
            icon_url: string;
            launch_config_json: string;
            category?: string | undefined;
            slug?: string | undefined;
            promo_video_url?: string | undefined;
            promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
            ios_app_store_id?: string | undefined;
            android_app_store_id?: string | undefined;
            privacy_policy_url?: string | undefined;
            terms_url?: string | undefined;
            hero_background_color?: string | undefined;
            min_age?: number | undefined;
            age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
            submitted_at?: string | undefined;
            contact_email?: string | undefined;
            highlights?: string[] | undefined;
            screenshots?: string[] | undefined;
            submitter?: {
                profileId: string;
                displayName: string;
                email?: string | undefined;
            } | undefined;
        } | undefined;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getListingInstallCount: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: number;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    installApp: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    uninstallApp: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getInstalledApps: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            limit?: number | undefined;
            cursor?: string | undefined;
        } | undefined;
        output: {
            hasMore: boolean;
            records: {
                app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
                launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
                listing_id: string;
                display_name: string;
                tagline: string;
                full_description: string;
                icon_url: string;
                launch_config_json: string;
                installed_at: string;
                category?: string | undefined;
                slug?: string | undefined;
                promo_video_url?: string | undefined;
                promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
                ios_app_store_id?: string | undefined;
                android_app_store_id?: string | undefined;
                privacy_policy_url?: string | undefined;
                terms_url?: string | undefined;
                hero_background_color?: string | undefined;
                min_age?: number | undefined;
                age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
                submitted_at?: string | undefined;
                contact_email?: string | undefined;
                highlights?: string[] | undefined;
                screenshots?: string[] | undefined;
                submitter?: {
                    profileId: string;
                    displayName: string;
                    email?: string | undefined;
                } | undefined;
            }[];
            cursor?: string | undefined;
        };
        meta: import(".././routes/index").RouteMetadata;
    }>;
    countInstalledApps: import("@trpc/server").TRPCQueryProcedure<{
        input: void;
        output: number;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    isAppInstalled: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getMyCredentialsFromApp: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
            limit?: number | undefined;
            cursor?: string | undefined;
        };
        output: {
            hasMore: boolean;
            records: {
                credentialId: string;
                credentialUri: string;
                date: string;
                status: "pending" | "revoked" | "suspended" | "claimed";
                boostName?: string | undefined;
                boostCategory?: string | undefined;
                activityId?: string | undefined;
            }[];
            totalCount: number;
            cursor?: string | undefined;
        };
        meta: import(".././routes/index").RouteMetadata;
    }>;
    addBoostToListing: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            boostUri: string;
            templateAlias: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    removeBoostFromListing: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            templateAlias: string;
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    getBoostsForListing: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            listingId: string;
        };
        output: {
            templateAlias: string;
            boostUri: string;
        }[];
        meta: import(".././routes/index").RouteMetadata;
    }>;
    sendAppNotification: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            recipient: string;
            title?: string | undefined;
            body?: string | undefined;
            actionPath?: string | undefined;
            category?: string | undefined;
            priority?: "normal" | "high" | undefined;
        };
        output: {
            sent: boolean;
        };
        meta: import(".././routes/index").RouteMetadata;
    }>;
    appEvent: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            event: {
                type: "send-credential";
                templateAlias: string;
                templateData?: Record<string, unknown> | undefined;
                preventDuplicateClaim?: boolean | undefined;
            } | {
                type: "check-credential";
                templateAlias?: string | undefined;
                boostUri?: string | undefined;
            } | {
                type: "check-issuance-status";
                recipient: string;
                templateAlias?: string | undefined;
                boostUri?: string | undefined;
            } | {
                type: "get-template-recipients";
                templateAlias?: string | undefined;
                boostUri?: string | undefined;
                limit?: number | undefined;
                cursor?: string | undefined;
            } | {
                type: "request-learner-context";
                includeCredentials?: boolean | undefined;
                includePersonalData?: boolean | undefined;
                format?: "prompt" | "structured" | undefined;
                instructions?: string | undefined;
                detailLevel?: "compact" | "expanded" | undefined;
            } | {
                type: "send-ai-session-credential";
                sessionTitle: string;
                summaryData: {
                    title: string;
                    summary: string;
                    learned: string[];
                    skills: {
                        title: string;
                        description: string;
                    }[];
                    nextSteps: {
                        title: string;
                        description: string;
                        keywords?: {
                            occupations: string[] | null;
                            careers: string[] | null;
                            jobs: string[] | null;
                            skills: string[] | null;
                            fieldOfStudy: string | null;
                        } | undefined;
                    }[];
                    reflections: {
                        title: string;
                        description: string;
                    }[];
                };
                metadata?: Record<string, unknown> | undefined;
            } | {
                type: "send-notification";
                title?: string | undefined;
                body?: string | undefined;
                actionPath?: string | undefined;
                category?: string | undefined;
                priority?: "normal" | "high" | undefined;
            } | {
                type: "increment-counter";
                key: string;
                amount: number;
            } | {
                type: "get-counter";
                key: string;
            } | {
                type: "get-counters";
                keys?: string[] | undefined;
            };
        };
        output: Record<string, unknown>;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    adminUpdateListingStatus: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    adminUpdatePromotionLevel: import("@trpc/server").TRPCMutationProcedure<{
        input: {
            listingId: string;
            promotionLevel: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED";
        };
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
    adminGetAllListings: import("@trpc/server").TRPCQueryProcedure<{
        input: {
            limit?: number | undefined;
            cursor?: string | undefined;
            status?: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED" | undefined;
        } | undefined;
        output: {
            hasMore: boolean;
            records: {
                app_listing_status: "DRAFT" | "PENDING_REVIEW" | "LISTED" | "ARCHIVED";
                launch_type: "EMBEDDED_IFRAME" | "SECOND_SCREEN" | "DIRECT_LINK" | "CONSENT_REDIRECT" | "SERVER_HEADLESS" | "AI_TUTOR";
                listing_id: string;
                display_name: string;
                tagline: string;
                full_description: string;
                icon_url: string;
                launch_config_json: string;
                category?: string | undefined;
                slug?: string | undefined;
                promo_video_url?: string | undefined;
                promotion_level?: "FEATURED_CAROUSEL" | "CURATED_LIST" | "STANDARD" | "DEMOTED" | undefined;
                ios_app_store_id?: string | undefined;
                android_app_store_id?: string | undefined;
                privacy_policy_url?: string | undefined;
                terms_url?: string | undefined;
                hero_background_color?: string | undefined;
                min_age?: number | undefined;
                age_rating?: "4+" | "9+" | "12+" | "17+" | undefined;
                submitted_at?: string | undefined;
                contact_email?: string | undefined;
                highlights?: string[] | undefined;
                screenshots?: string[] | undefined;
                submitter?: {
                    profileId: string;
                    displayName: string;
                    email?: string | undefined;
                } | undefined;
            }[];
            cursor?: string | undefined;
        };
        meta: import(".././routes/index").RouteMetadata;
    }>;
    isAdmin: import("@trpc/server").TRPCQueryProcedure<{
        input: void;
        output: boolean;
        meta: import(".././routes/index").RouteMetadata;
    }>;
}>>;
export type AppStoreRouter = typeof appStoreRouter;
//# sourceMappingURL=app-store.d.ts.map