import { MigrationClient } from '../migration-client'; import { OpenApiSpecOutput } from '@directus/sdk'; import { ConfigService } from '../config'; import { Logger, LoggerService } from '../logger'; export declare class SpecificationsClient { protected readonly migrationClient: MigrationClient; protected readonly dumpPath: string; protected readonly enabled: boolean; protected readonly logger: Logger; constructor(config: ConfigService, loggerService: LoggerService, migrationClient: MigrationClient); /** * Save the snapshot locally */ pull(): Promise; /** * Get GraphQL SDL from the server */ protected getGraphQL(scope?: 'item' | 'system'): Promise; /** * Get OpenAPI specifications from the server */ protected getOpenAPI(): Promise; /** * Save the GraphQL data to the dump file. */ protected saveGraphQLData(data: string, filename: string): void; /** * Save the OpenAPI JSON data to the dump file. */ protected saveOpenAPIData(data: OpenApiSpecOutput): void; }