import { AdminSession } from '../../session.js'; /** * Normalizes a bulk operation ID to a GID. * * @param id - A numeric ID or a full GID. * @returns The GID form of the ID. */ export declare function normalizeBulkOperationId(id: string): string; /** * Extracts the numeric ID from a bulk operation GID. * * @param gid - A GID like "gid://shopify/BulkOperation/123". * @returns The numeric ID, or the original string if it isn't a recognized GID. */ export declare function extractBulkOperationId(gid: string): string; /** * Validates that a GraphQL document contains exactly one operation definition. * * @param graphqlOperation - The GraphQL query or mutation string to validate. * @throws AbortError if the document doesn't contain exactly one operation or has syntax errors. */ export declare function validateSingleOperation(graphqlOperation: string): void; /** * Checks if a GraphQL operation is a mutation. * * @param graphqlOperation - The GraphQL query or mutation string to check. * @returns True if the operation is a mutation, false otherwise. * @throws AbortError if the operation has invalid GraphQL syntax. */ export declare function isMutation(graphqlOperation: string): boolean; /** * Options for resolving an API version. */ interface ResolveApiVersionOptions { /** Admin session containing store credentials. */ adminSession: AdminSession; /** The API version specified by the user. */ userSpecifiedVersion?: string; /** Optional minimum version to use as a fallback when no version is specified. */ minimumDefaultVersion?: string; } /** * Determines the API version to use based on the user provided version and the available versions. * The 'unstable' version is always allowed without validation. * * @param options - Options for resolving the API version. * @returns The resolved API version. * @throws AbortError if the provided version is not allowed. */ export declare function resolveApiVersion(options: ResolveApiVersionOptions): Promise; export {};