export interface BasicChannelState { agentState: string; pendingIdle: boolean; auxCodeId?: string | null; idleCodeName?: string; } export interface IdleCodeEntity { id: string | number; name: string; } export interface IdleCodeSummary { id: string; name: string; } export interface ComputeLastSetIdleCodeParams { channelsStatesMap: Record | Partial>; defaultIdleCode?: IdleCodeSummary | null; systemIdleCodes?: IdleCodeEntity[] | null; } /** * Compute the last-set idle code for a set of per-channel states. * * Rules: * - Only consider channels in Idle or pending-idle. * - Use channel.auxCodeId when non-empty and not "0", otherwise fall back to defaultIdleCode.id. * - Skip auxCodeIds that belong to system idle codes. * - Resolve name from channel.idleCodeName, then defaultIdleCode.name, then agentState. */ export declare function computeLastSetIdleCodeFromChannels(params: ComputeLastSetIdleCodeParams): IdleCodeSummary; //# sourceMappingURL=aqm-idle-code-utils.d.ts.map