import type { OperationState, PollerLike } from "@azure/core-lro"; interface PollerConfig { /** Mode: "state" polls until target state, "deletion" until 404, "exists" until 200. */ mode: "state" | "deletion" | "exists"; /** * Sends the initiating request (PUT/POST/DELETE) and returns the initial * resource representation (or undefined for deletion). Called lazily on first * poll so `begin*` can return a poller synchronously. */ initiate: () => Promise; /** Build the polling getter once the initial resource is known. */ buildGetter?: (initial: TResource | undefined) => () => Promise; /** Fixed polling getter (used when the resource id is known up front). */ getter?: () => Promise; /** Extract the lifecycle state from the resource (state mode only). */ stateFn?: (resource: TResource) => string | undefined; /** Target terminal states (case-insensitive). */ targetStates?: string[]; /** Failure terminal states (case-insensitive). */ failedStates?: string[]; /** Optional transform applied to the resolved resource. */ transform?: (resource: TResource) => TResult; resourceId?: string; updateIntervalInMs?: number; timeoutInMs?: number; } /** * Builds a {@link PollerLike} backed by data-plane state polling. * * The Azure Container Apps Sandbox data plane does not use the ARM * `Azure-AsyncOperation` header convention; instead a resource exposes a * lifecycle `state` field that transitions to a terminal value (or a delete * results in a 404). This helper adapts that model to the standard * `@azure/core-lro` {@link PollerLike} contract so the SDK surface matches the * generated Azure SDKs. */ export declare function createSandboxPoller(config: PollerConfig): PollerLike, TResult>; export {}; //# sourceMappingURL=dataPlanePollingHelpers.d.ts.map