/** `Operation` discriminants a client sends or receives. */ export declare const Operation: { readonly Reserved: 0; readonly Register: 1; readonly NonReplicated: 2; readonly Logout: 3; readonly CreateTopicWithAssignments: 64; readonly CreatePartitionsWithAssignments: 65; readonly RemoveConsumerGroupMember: 66; readonly CompleteConsumerGroupRevocation: 67; readonly TruncatePartition: 68; readonly CreateStream: 128; readonly UpdateStream: 129; readonly DeleteStream: 130; readonly PurgeStream: 131; readonly CreateTopic: 132; readonly UpdateTopic: 133; readonly DeleteTopic: 134; readonly PurgeTopic: 135; readonly CreatePartitions: 136; readonly DeletePartitions: 137; readonly DeleteSegments: 138; readonly CreateConsumerGroup: 139; readonly DeleteConsumerGroup: 140; readonly CreateUser: 141; readonly UpdateUser: 142; readonly DeleteUser: 143; readonly ChangePassword: 144; readonly UpdatePermissions: 145; readonly CreatePersonalAccessToken: 146; readonly DeletePersonalAccessToken: 147; readonly JoinConsumerGroup: 148; readonly LeaveConsumerGroup: 149; readonly SendMessages: 160; readonly StoreConsumerOffset: 161; readonly DeleteConsumerOffset: 162; }; /** * Whether the byte is a declared `Operation` discriminant. Replies carry a * server-controlled operation byte; Rust validates it with a checked cast, * so an undeclared value must be rejected, not classified by range. */ export declare const isKnownOperation: (operation: number) => boolean; /** Internal band, never client-sent. */ export declare const isInternal: (operation: number) => boolean; /** * Metadata classification is an explicit allowlist, not a range: * `DeleteSegments` (138) sits inside the band but resolves to a partition * truncation server-side, so it is deliberately excluded. Port of * `Operation::is_metadata`. */ export declare const isMetadata: (operation: number) => boolean; /** Whether a reply body leads with a committed result section. */ export declare const isResultFramed: (operation: number) => boolean; /** * Picks the header operation for a command code. Unknown extension codes are * sent as non-replicated with their command code in the reserved header field, * allowing the server to classify or reject them. */ export declare const operationForCode: (code: number) => number; //# sourceMappingURL=operation.d.ts.map