import type { AnyNonPromise, AsTypeFunction } from '@xylabs/sdk-js'; import type { Payload, WithSources } from '@xyo-network/sdk-protocol-js'; export type StateDictionary = Record; export interface State { state: T; } export declare const ModuleStateSchema: 'network.xyo.module.state' & { readonly __schema: true; }; export type ModuleStateSchema = typeof ModuleStateSchema; export type ModuleState = Payload, ModuleStateSchema>; export declare const isModuleState: (payload?: TInput) => payload is ModuleState & TInput; export declare const isModuleStateWithSources: (payload?: TInput) => payload is WithSources> & TInput; export declare const asModuleState: AsTypeFunction>; export declare const asOptionalModuleState: (value: AnyNonPromise) => ModuleState | undefined; //# sourceMappingURL=ModuleState.d.ts.map