/** * Purge Fastly CDN URL * Purges a specific URL from Fastly CDN cache * * @see https://developer.fastly.com/reference/api/purging/ */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; import type { FastlyPurgeUrlRequest, FastlyPurgeUrlResponse } from '@plyaz/types/api'; /** * Purge single URL from Fastly CDN * Uses endpoint: POST /service/{serviceId}/purge/{url} * * @param payload - URL purge request with service ID and URL * @param options - Optional service options (client override, config overrides) * @returns Promise with FastlyPurgeUrlResponse * * @example * ```typescript * import { fastlyPurgeUrl } from '@plyaz/api/services'; * * const result = await fastlyPurgeUrl({ * serviceId: 'ABC123', * apiToken: process.env.FASTLY_API_TOKEN!, * url: 'https://example.com/image.jpg', * }); * * console.log('Purge status:', result.data.status); * ``` * * @throws {ApiPackageError} When the request fails or validation errors occur */ export declare function fastlyPurgeUrl(payload: FastlyPurgeUrlRequest, options?: ServiceOptions): Promise>; //# sourceMappingURL=fastlyPurgeUrl.d.ts.map