import type { KeyVal, KeyValArray, KeyValObj, KeyValRel, KeyValSort, KeyValString, ResAttributes } from '@commercelayer/cli-core'; import * as cliux from '@commercelayer/cli-ux'; import type { CommerceLayerClient, QueryParams, ResourceId, ResourceType } from '@commercelayer/sdk'; import { Args, Command, type Config, Flags } from '@oclif/core'; import { type ResourceOperation } from './commands'; import { type RequestData } from './lang'; import { type LastResources } from './last'; import { type ApiResource } from './util/resources'; export declare const FLAG_SAVE_PARAMS = "save-args"; export declare const FLAG_LOAD_PARAMS = "load-args"; export declare abstract class BaseCommand extends Command { static flags: { organization: import("@oclif/core/lib/interfaces").OptionFlag; domain: import("@oclif/core/lib/interfaces").OptionFlag; accessToken: import("@oclif/core/lib/interfaces").OptionFlag; }; protected initCommerceLayer(flags: any, ...options: any[]): CommerceLayerClient; protected printOutput(output: any, flags: any | undefined): void; protected printError(error: any, flags?: any, args?: any): void; protected checkResource(res: string, { required, singular }?: { required?: boolean | undefined; singular?: boolean | undefined; }): ApiResource; protected checkResourceId(resource: string, resourceId?: string, required?: boolean): { res: string; id?: string; singleton: boolean; }; protected checkOperation(sdk: any, name: string, attributes?: ResAttributes): boolean; protected lastResources(organization: string, lastRes?: LastResources): LastResources; } export declare abstract class BaseQueryCommand extends BaseCommand { static flags: { include: import("@oclif/core/lib/interfaces").OptionFlag; fields: import("@oclif/core/lib/interfaces").OptionFlag; json: import("@oclif/core/lib/interfaces").BooleanFlag; unformatted: import("@oclif/core/lib/interfaces").BooleanFlag; raw: import("@oclif/core/lib/interfaces").BooleanFlag; doc: import("@oclif/core/lib/interfaces").BooleanFlag; lang: import("@oclif/core/lib/interfaces").OptionFlag; curl: import("@oclif/core/lib/interfaces").BooleanFlag; node: import("@oclif/core/lib/interfaces").BooleanFlag; "save-args": import("@oclif/core/lib/interfaces").OptionFlag; "load-args": import("@oclif/core/lib/interfaces").OptionFlag; headers: import("@oclif/core/lib/interfaces").BooleanFlag; 'headers-only': import("@oclif/core/lib/interfaces").BooleanFlag; 'force-include': import("@oclif/core/lib/interfaces").BooleanFlag; organization: import("@oclif/core/lib/interfaces").OptionFlag; domain: import("@oclif/core/lib/interfaces").OptionFlag; accessToken: import("@oclif/core/lib/interfaces").OptionFlag; }; init(): Promise; catch(error: any): Promise; protected checkTag(resource: string): boolean; protected tagFlag(flag: string[] | undefined): Array; protected includeFlag(flag: string[] | undefined, relationships?: KeyValRel, force?: boolean): string[]; protected objectFlag(flag: string[] | undefined): ResAttributes; protected jsonFlag(flag: string[] | undefined, objects?: KeyValObj): ResAttributes; protected fieldsFlag(flag: string[] | undefined, type: string): KeyValArray; protected whereFlag(flag: string[] | undefined): KeyValString; protected sortFlag(flag: string[] | undefined): KeyValSort; protected _keyvalFlag(flag: string[] | undefined, type?: string): KeyValString; protected attributeFlag(flag: string[] | undefined): ResAttributes; protected metadataFlag(flag: string[] | undefined, { fixTypes }?: { fixTypes?: boolean | undefined; }): KeyVal; protected relationshipFlag(flag: string[] | undefined, organization?: string): KeyValRel; protected extractFlag(flag: string[]): KeyValArray; protected extractObjectFields(fields: KeyValArray, obj: any): void; protected printHeaders(headers: any, flags: any): void; protected saveOutput(output: any, flags: any): void; protected showLiveDocumentation(request: RequestData, params?: QueryParams, flags?: any): Promise; protected printCommand(lang: string, command: string): void; protected checkApplication(accessToken: string, kinds: string[]): boolean; protected checkAlias(alias: string, resource: string, operation: ResourceOperation, config: Config): void; protected saveParams: (alias: string, resource: ResourceType | ResourceId, operation: ResourceOperation, params: QueryParams) => void; protected loadParams(alias: string, resource: string, operation: ResourceOperation): QueryParams; } export default abstract class extends BaseQueryCommand { static args: { resource: import("@oclif/core/lib/interfaces").Arg>; }; protected checkLastId(organization: string, resource: string, id?: string): string; } export { Args, cliux, Flags };