@ar.io/sdk
Version:
[](https://codecov.io/gh/ar-io/ar-io-sdk)
29 lines (28 loc) • 1.14 kB
TypeScript
import { AoANTRegistryRead, AoANTRegistryWrite } from '../types/ant-registry.js';
import { AoMessageResult, ProcessConfiguration, WithSigner } from '../types/index.js';
import { AOProcess } from './index.js';
type ANTRegistryNoSigner = ProcessConfiguration;
type ANTRegistryWithSigner = WithSigner<ProcessConfiguration>;
export declare class ANTRegistry {
static init(): AoANTRegistryRead;
static init(config: ANTRegistryNoSigner): AoANTRegistryRead;
static init(config: ANTRegistryWithSigner): AoANTRegistryWrite;
}
export declare class AoANTRegistryReadable implements AoANTRegistryRead {
protected process: AOProcess;
constructor(config?: ProcessConfiguration);
accessControlList({ address, }: {
address: string;
}): Promise<{
Owned: string[];
Controlled: string[];
}>;
}
export declare class AoANTRegistryWriteable extends AoANTRegistryReadable implements AoANTRegistryWrite {
private signer;
constructor({ signer, ...config }: WithSigner<ProcessConfiguration>);
register({ processId, }: {
processId: string;
}): Promise<AoMessageResult>;
}
export {};