import { MinimalOrganizationApp, Organization, OrganizationApp, OrganizationStore } from '../../models/organization.js'; import { AccountInfo, PartnersSession } from '../context/partner-account-info.js'; import { DeveloperPlatformClient } from '../../utilities/developer-platform-client.js'; import { AbortError } from '@shopify/cli-kit/node/error'; export declare class NoOrgError extends AbortError { constructor(partnersAccount: AccountInfo, organizationId?: string); } export interface OrganizationAppsResponse { pageInfo: { hasNextPage: boolean; }; nodes: MinimalOrganizationApp[]; } export interface FetchResponse { organization: Organization; apps: OrganizationAppsResponse; stores: OrganizationStore[]; } /** * Fetch all organizations the user belongs to * If the user doesn't belong to any org, throw an error * @param developerPlatformClient - The client to access the platform API * @returns List of organizations */ export declare function fetchOrganizations(developerPlatformClient: DeveloperPlatformClient): Promise; /** * Fetch all apps and stores for the given organization * @param orgId - Organization ID * @param token - Token to access partners API * @returns Current organization details and list of apps and stores */ export declare function fetchOrgAndApps(orgId: string, partnersSession: PartnersSession, title?: string): Promise; export declare enum Flag { DeclarativeWebhooks = 0 } export declare function fetchAppDetailsFromApiKey(apiKey: string, token: string): Promise; export declare function filterDisabledFlags(disabledFlags?: string[]): Flag[]; export declare function fetchAppPreviewMode(apiKey: string, developerPlatformClient: DeveloperPlatformClient): Promise; export declare function fetchOrgFromId(id: string, developerPlatformClient: DeveloperPlatformClient): Promise; export declare function fetchAllDevStores(orgId: string, token: string): Promise; interface FetchStoreByDomainOutput { organization: Organization; store?: OrganizationStore; } /** * Returns the organization and the store based on passed domain * If a store with that domain doesn't exist the method returns undefined * @param orgId - Organization ID * @param shopDomain - shop domain fqdn * @param developerPlatformClient - The client to access the platform API */ export declare function fetchStoreByDomain(orgId: string, shopDomain: string, developerPlatformClient: DeveloperPlatformClient): Promise; export {};